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.

 

FieldsDescription
PreviousRetryCountBefore the first reconnect attempt, the value is set to zero. After each failed retry attempt, PreviousRetryCount is incremented by one.
ElapsedTimeBefore 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.
RetryReasonThe Exception that describes the cause of the connection loss or failed retry attempt.

 

See also

TScRetryPolicy.NextRetryDelay

 

SecureBridge Components, Copyright © 2007-2024 Devart. All Rights Reserved. Provide Feedback Visit Forum Request Support