Unit
ScSignalRHubConnection
type
TScRetryContext = record
PreviousRetryCount: Int64;
ElapsedTime: {$IFNDEF FPC}Cardinal{$ELSE}UInt64{$ENDIF};
RetryReason: Exception;
end;
Description
The TScRetryContext record contains a value for the TScRetryPolicy.NextRetryDelay method that determines the time to wait before the next reconnect attempt.
Fields | Description |
PreviousRetryCount | Before the first reconnect attempt, the value is set to zero. After each failed retry attempt, PreviousRetryCount is incremented by one. |
ElapsedTime | Before the first reconnect attempt, the value is set to zero. After each failed retry attempt, ElapsedTime is updated to reflect the amount of time spent reconnecting so far. |
RetryReason | The Exception that describes the cause of the connection loss or failed retry attempt. |
See also