JsonRpcDisconnectedEventArgs Constructors

Definition

Overloads

JsonRpcDisconnectedEventArgs(String, DisconnectedReason)

Initializes a new instance of the JsonRpcDisconnectedEventArgs class.

JsonRpcDisconnectedEventArgs(String, DisconnectedReason, JToken)
Obsolete.
Obsolete.

Initializes a new instance of the JsonRpcDisconnectedEventArgs class.

JsonRpcDisconnectedEventArgs(String, DisconnectedReason, Exception)

Initializes a new instance of the JsonRpcDisconnectedEventArgs class.

JsonRpcDisconnectedEventArgs(String, DisconnectedReason, String)

Initializes a new instance of the JsonRpcDisconnectedEventArgs class.

JsonRpcDisconnectedEventArgs(String, DisconnectedReason, JToken, Exception)
Obsolete.
Obsolete.

Initializes a new instance of the JsonRpcDisconnectedEventArgs class.

JsonRpcDisconnectedEventArgs(String, DisconnectedReason, String, Exception)

Initializes a new instance of the JsonRpcDisconnectedEventArgs class.

JsonRpcDisconnectedEventArgs(String, DisconnectedReason)

Initializes a new instance of the JsonRpcDisconnectedEventArgs class.

public JsonRpcDisconnectedEventArgs (string description, StreamJsonRpc.DisconnectedReason reason);
new StreamJsonRpc.JsonRpcDisconnectedEventArgs : string * StreamJsonRpc.DisconnectedReason -> StreamJsonRpc.JsonRpcDisconnectedEventArgs
Public Sub New (description As String, reason As DisconnectedReason)

Parameters

description
String

The description.

reason
DisconnectedReason

The reason for disconnection.

Applies to

JsonRpcDisconnectedEventArgs(String, DisconnectedReason, JToken)

Caution

This API is now deprecated.

Caution

Avoid overloads that assume the message is exchanged by JToken.

Initializes a new instance of the JsonRpcDisconnectedEventArgs class.

public JsonRpcDisconnectedEventArgs (string description, StreamJsonRpc.DisconnectedReason reason, Newtonsoft.Json.Linq.JToken lastMessage);
public JsonRpcDisconnectedEventArgs (string description, StreamJsonRpc.DisconnectedReason reason, Newtonsoft.Json.Linq.JToken? lastMessage);
[System.Obsolete]
public JsonRpcDisconnectedEventArgs (string description, StreamJsonRpc.DisconnectedReason reason, Newtonsoft.Json.Linq.JToken? lastMessage);
[System.Obsolete("Avoid overloads that assume the message is exchanged by JToken.")]
public JsonRpcDisconnectedEventArgs (string description, StreamJsonRpc.DisconnectedReason reason, Newtonsoft.Json.Linq.JToken? lastMessage);
new StreamJsonRpc.JsonRpcDisconnectedEventArgs : string * StreamJsonRpc.DisconnectedReason * Newtonsoft.Json.Linq.JToken -> StreamJsonRpc.JsonRpcDisconnectedEventArgs
[<System.Obsolete>]
new StreamJsonRpc.JsonRpcDisconnectedEventArgs : string * StreamJsonRpc.DisconnectedReason * Newtonsoft.Json.Linq.JToken -> StreamJsonRpc.JsonRpcDisconnectedEventArgs
[<System.Obsolete("Avoid overloads that assume the message is exchanged by JToken.")>]
new StreamJsonRpc.JsonRpcDisconnectedEventArgs : string * StreamJsonRpc.DisconnectedReason * Newtonsoft.Json.Linq.JToken -> StreamJsonRpc.JsonRpcDisconnectedEventArgs
Public Sub New (description As String, reason As DisconnectedReason, lastMessage As JToken)

Parameters

description
String

The description.

reason
DisconnectedReason

The reason for disconnection.

lastMessage
Newtonsoft.Json.Linq.JToken

The last message.

Attributes

Applies to

JsonRpcDisconnectedEventArgs(String, DisconnectedReason, Exception)

Initializes a new instance of the JsonRpcDisconnectedEventArgs class.

public JsonRpcDisconnectedEventArgs (string description, StreamJsonRpc.DisconnectedReason reason, Exception exception);
public JsonRpcDisconnectedEventArgs (string description, StreamJsonRpc.DisconnectedReason reason, Exception? exception);
new StreamJsonRpc.JsonRpcDisconnectedEventArgs : string * StreamJsonRpc.DisconnectedReason * Exception -> StreamJsonRpc.JsonRpcDisconnectedEventArgs
Public Sub New (description As String, reason As DisconnectedReason, exception As Exception)

Parameters

description
String

The description.

reason
DisconnectedReason

The reason for disconnection.

exception
Exception

The exception.

Applies to

JsonRpcDisconnectedEventArgs(String, DisconnectedReason, String)

Initializes a new instance of the JsonRpcDisconnectedEventArgs class.

public JsonRpcDisconnectedEventArgs (string description, StreamJsonRpc.DisconnectedReason reason, string lastMessage);
new StreamJsonRpc.JsonRpcDisconnectedEventArgs : string * StreamJsonRpc.DisconnectedReason * string -> StreamJsonRpc.JsonRpcDisconnectedEventArgs
Public Sub New (description As String, reason As DisconnectedReason, lastMessage As String)

Parameters

description
String

The description.

reason
DisconnectedReason

The reason for disconnection.

lastMessage
String

The last message.

Applies to

JsonRpcDisconnectedEventArgs(String, DisconnectedReason, JToken, Exception)

Caution

This API is now deprecated.

Caution

Avoid overloads that assume the message is exchanged by JToken.

Initializes a new instance of the JsonRpcDisconnectedEventArgs class.

public JsonRpcDisconnectedEventArgs (string description, StreamJsonRpc.DisconnectedReason reason, Newtonsoft.Json.Linq.JToken lastMessage, Exception exception);
public JsonRpcDisconnectedEventArgs (string description, StreamJsonRpc.DisconnectedReason reason, Newtonsoft.Json.Linq.JToken? lastMessage, Exception? exception);
[System.Obsolete]
public JsonRpcDisconnectedEventArgs (string description, StreamJsonRpc.DisconnectedReason reason, Newtonsoft.Json.Linq.JToken? lastMessage, Exception? exception);
[System.Obsolete("Avoid overloads that assume the message is exchanged by JToken.")]
public JsonRpcDisconnectedEventArgs (string description, StreamJsonRpc.DisconnectedReason reason, Newtonsoft.Json.Linq.JToken? lastMessage, Exception? exception);
new StreamJsonRpc.JsonRpcDisconnectedEventArgs : string * StreamJsonRpc.DisconnectedReason * Newtonsoft.Json.Linq.JToken * Exception -> StreamJsonRpc.JsonRpcDisconnectedEventArgs
[<System.Obsolete>]
new StreamJsonRpc.JsonRpcDisconnectedEventArgs : string * StreamJsonRpc.DisconnectedReason * Newtonsoft.Json.Linq.JToken * Exception -> StreamJsonRpc.JsonRpcDisconnectedEventArgs
[<System.Obsolete("Avoid overloads that assume the message is exchanged by JToken.")>]
new StreamJsonRpc.JsonRpcDisconnectedEventArgs : string * StreamJsonRpc.DisconnectedReason * Newtonsoft.Json.Linq.JToken * Exception -> StreamJsonRpc.JsonRpcDisconnectedEventArgs
Public Sub New (description As String, reason As DisconnectedReason, lastMessage As JToken, exception As Exception)

Parameters

description
String

The description.

reason
DisconnectedReason

The reason for disconnection.

lastMessage
Newtonsoft.Json.Linq.JToken

The last message.

exception
Exception

The exception.

Attributes

Applies to

JsonRpcDisconnectedEventArgs(String, DisconnectedReason, String, Exception)

Initializes a new instance of the JsonRpcDisconnectedEventArgs class.

public JsonRpcDisconnectedEventArgs (string description, StreamJsonRpc.DisconnectedReason reason, string lastMessage, Exception exception);
new StreamJsonRpc.JsonRpcDisconnectedEventArgs : string * StreamJsonRpc.DisconnectedReason * string * Exception -> StreamJsonRpc.JsonRpcDisconnectedEventArgs
Public Sub New (description As String, reason As DisconnectedReason, lastMessage As String, exception As Exception)

Parameters

description
String

The description.

reason
DisconnectedReason

The reason for disconnection.

lastMessage
String

The last message.

exception
Exception

The exception.

Applies to