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
remoteEndpointstringmessageIdintmessageTypeMessageTypemessagestring
RpcProtocolErrorEventArgs(string, int, MessageType, string, Exception?)
public RpcProtocolErrorEventArgs(string remoteEndpoint, int messageId, MessageType messageType, string message, Exception? error)
Parameters
remoteEndpointstringmessageIdintmessageTypeMessageTypemessagestringerrorException
Properties
Error
The underlying parse or deserialization error, when one was available.
public Exception? Error { get; }
Property Value
Message
A safe diagnostic message describing the protocol problem.
public string Message { get; }
Property Value
MessageId
The message id from the frame header, or 0 when the header was malformed.
public int MessageId { get; }
Property Value
MessageType
The message type from the frame header, or default when the header was malformed.
public MessageType MessageType { get; }
Property Value
RemoteEndpoint
The remote endpoint string of the channel that sent the frame.
public string RemoteEndpoint { get; }