Skip to content

Class RpcProtocolErrorEventArgs

Namespace: DotBoxD.Services.Diagnostics
Assembly: DotBoxD.Services.dll

Describes a malformed or unsupported protocol frame observed by an DotBoxD.Services.Peer.RpcPeer.

public sealed class RpcProtocolErrorEventArgs : EventArgs

objectEventArgsRpcProtocolErrorEventArgs

EventArgs.Empty, object.Equals(object), object.Equals(object, object), object.GetHashCode(), object.GetType(), object.ReferenceEquals(object, object), object.ToString()

RpcProtocolErrorEventArgs(string, int, MessageType, string)

Section titled “ RpcProtocolErrorEventArgs(string, int, MessageType, string)”
public RpcProtocolErrorEventArgs(string remoteEndpoint, int messageId, MessageType messageType, string message)

remoteEndpoint string

messageId int

messageType MessageType

message string

RpcProtocolErrorEventArgs(string, int, MessageType, string, Exception?)

Section titled “ RpcProtocolErrorEventArgs(string, int, MessageType, string, Exception?)”
public RpcProtocolErrorEventArgs(string remoteEndpoint, int messageId, MessageType messageType, string message, Exception? error)

remoteEndpoint string

messageId int

messageType MessageType

message string

error Exception?

The underlying parse or deserialization error, when one was available.

public Exception? Error { get; }

Exception?

A safe diagnostic message describing the protocol problem.

public string Message { get; }

string

The message id from the frame header, or 0 when the header was malformed.

public int MessageId { get; }

int

The message type from the frame header, or default when the header was malformed.

public MessageType MessageType { get; }

MessageType

The remote endpoint string of the channel that sent the frame.

public string RemoteEndpoint { get; }

string