Struct ConnectionReceivedMessageEvent
Occurs after a message is received.
public struct ConnectionReceivedMessageEvent
- Inherited Members
Constructors
ConnectionReceivedMessageEvent(ConnectionId, int, int, TimeSpan, TimeSpan, long?)
Initializes a new instance of the ConnectionReceivedMessageEvent struct.
public ConnectionReceivedMessageEvent(ConnectionId connectionId, int responseTo, int length, TimeSpan networkDuration, TimeSpan deserializationDuration, long? operationId)
Parameters
connectionId
ConnectionIdThe connection identifier.
responseTo
intThe id of the message we received a response to.
length
intThe length of the received message.
networkDuration
TimeSpanThe duration of network time it took to receive the message.
deserializationDuration
TimeSpanThe duration of deserialization time it took to receive the message.
operationId
long?The operation identifier.
Properties
ClusterId
Gets the cluster identifier.
public ClusterId ClusterId { get; }
Property Value
ConnectionId
Gets the connection identifier.
public ConnectionId ConnectionId { get; }
Property Value
DeserializationDuration
Gets the duration of deserialization time it took to receive the message.
public TimeSpan DeserializationDuration { get; }
Property Value
Duration
Gets the duration of time it took to receive the message.
public TimeSpan Duration { get; }
Property Value
Length
Gets the length of the received message.
public int Length { get; }
Property Value
NetworkDuration
Gets the duration of network time it took to receive the message.
public TimeSpan NetworkDuration { get; }
Property Value
OperationId
Gets the operation identifier.
public long? OperationId { get; }
Property Value
- long?
ResponseTo
Gets the id of the message we received a response to.
public int ResponseTo { get; }
Property Value
ServerId
Gets the server identifier.
public ServerId ServerId { get; }
Property Value
Timestamp
Gets the timestamp.
public DateTime Timestamp { get; }