IClientConnectionRetryFilter.ShouldRetryConnectionAttempt Method
Definition
Important
Some information relates to prerelease product that may be substantially modified before it’s released. Microsoft makes no warranties, express or implied, with respect to the information provided here.
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.