DisconnectedReason Enum
Definition
Important
Some information relates to prerelease product that may be substantially modified before it’s released. Microsoft makes no warranties, express or implied, with respect to the information provided here.
Identifies a reason for a stream disconnection.
public enum DisconnectedReason
type DisconnectedReason =
Public Enum DisconnectedReason
- Inheritance
-
DisconnectedReason
Fields
Name | Value | Description |
---|---|---|
StreamError | 0 | An error occurred while accessing the stream. |
Unknown | 0 | Unknown reason. |
ParseError | 1 | A syntax or schema error while reading a JSON-RPC packet occurred. |
LocallyDisposed | 2 | The JsonRpc instance was disposed. |
Disposed | 3 | The stream was disposed. |
RemotePartyTerminated | 3 | The underlying transport was closed by the remote party. |
FatalException | 4 | A fatal exception was thrown in a local method that was requested by the remote party. |
LocalContractViolation | 5 | An extensibility point was leveraged locally and broke the contract. |
RemoteProtocolViolation | 6 | The remote party violated the JSON-RPC protocol. |