Enum DisconnectedReason
- Namespace
- StreamJsonRpc
- Assembly
- StreamJsonRpc.dll
Identifies a reason for a stream disconnection.
public enum DisconnectedReason
Fields
FatalException = 4
A fatal exception was thrown in a local method that was requested by the remote party.
Exceptions thrown by locally dispatched method calls are not considered fatal by default. The virtual method IsFatalException(Exception) may be overridden by an application in order to enable a JSON-RPC server to throw an exception that can terminate the entire connection.
LocalContractViolation = 5
An extensibility point was leveraged locally and broke the contract.
LocallyDisposed = 2
The JsonRpc instance was disposed.
ParseError = 1
A syntax or schema error while reading a JSON-RPC packet occurred.
RemotePartyTerminated = 3
The underlying transport was closed by the remote party.
RemoteProtocolViolation = 6
The remote party violated the JSON-RPC protocol.
StreamError = 0
An error occurred while accessing the stream.