Struct ServerHeartbeatFailedEvent
Occurs when a heartbeat failed.
public struct ServerHeartbeatFailedEvent
- Inherited Members
Constructors
ServerHeartbeatFailedEvent(ConnectionId, Exception, bool)
Initializes a new instance of the ServerHeartbeatFailedEvent struct.
[Obsolete("Use the other contstructor instead")]
public ServerHeartbeatFailedEvent(ConnectionId connectionId, Exception exception, bool awaited)
Parameters
connectionId
ConnectionIdThe connection identifier.
exception
ExceptionThe exception.
awaited
boolThe awaited flag.
ServerHeartbeatFailedEvent(ConnectionId, TimeSpan, Exception, bool)
Initializes a new instance of the ServerHeartbeatFailedEvent struct.
public ServerHeartbeatFailedEvent(ConnectionId connectionId, TimeSpan duration, Exception exception, bool awaited)
Parameters
connectionId
ConnectionIdThe connection identifier.
duration
TimeSpanThe duration of time passed since corresponding ServerHeartbeatStartedEvent.
exception
ExceptionThe exception.
awaited
boolThe awaited flag.
Properties
Awaited
Determines if this heartbeat event is for an awaitable hello.
public bool Awaited { get; }
Property Value
ClusterId
Gets the cluster identifier.
public ClusterId ClusterId { get; }
Property Value
ConnectionId
Gets the connection identifier.
public ConnectionId ConnectionId { get; }
Property Value
Duration
Gets the duration of time passed since corresponding ServerHeartbeatStartedEvent.
public TimeSpan Duration { get; }
Property Value
Exception
Gets the exception.
public Exception Exception { get; }
Property Value
ServerId
Gets the server identifier.
public ServerId ServerId { get; }
Property Value
Timestamp
Gets the timestamp.
public DateTime Timestamp { get; }