Table of Contents

Class RpcProtocolErrorEventArgs

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

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

public sealed class RpcProtocolErrorEventArgs : EventArgs
Inheritance
RpcProtocolErrorEventArgs
Inherited Members

Constructors

RpcProtocolErrorEventArgs(string, int, MessageType, string)

public RpcProtocolErrorEventArgs(string remoteEndpoint, int messageId, MessageType messageType, string message)

Parameters

remoteEndpoint string
messageId int
messageType MessageType
message string

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

public RpcProtocolErrorEventArgs(string remoteEndpoint, int messageId, MessageType messageType, string message, Exception? error)

Parameters

remoteEndpoint string
messageId int
messageType MessageType
message string
error Exception

Properties

Error

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

public Exception? Error { get; }

Property Value

Exception

Message

A safe diagnostic message describing the protocol problem.

public string Message { get; }

Property Value

string

MessageId

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

public int MessageId { get; }

Property Value

int

MessageType

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

public MessageType MessageType { get; }

Property Value

MessageType

RemoteEndpoint

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

public string RemoteEndpoint { get; }

Property Value

string