Edit

Share via


IClientConnectionRetryFilter.ShouldRetryConnectionAttempt Method

Definition

Returns a value indicating whether connection to an Orleans cluster should be re-attempted.

public System.Threading.Tasks.Task<bool> ShouldRetryConnectionAttempt (Exception exception, System.Threading.CancellationToken cancellationToken);
abstract member ShouldRetryConnectionAttempt : Exception * System.Threading.CancellationToken -> System.Threading.Tasks.Task<bool>
Public Function ShouldRetryConnectionAttempt (exception As Exception, cancellationToken As CancellationToken) As Task(Of Boolean)

Parameters

exception
Exception

The exception thrown from the last connection attempt.

cancellationToken
CancellationToken

The cancellation token used to notify when connection has been aborted externally.

Returns

true if connection should be re-attempted, false if attempts to connect to the cluster should be aborted.

Applies to