Share via


NoRetry.ShouldRetry(Int32, Exception, TimeSpan) Method

Definition

A policy to never retry

public bool ShouldRetry (int currentRetryCount, Exception lastException, out TimeSpan retryInterval);
abstract member ShouldRetry : int * Exception * TimeSpan -> bool
override this.ShouldRetry : int * Exception * TimeSpan -> bool
Public Function ShouldRetry (currentRetryCount As Integer, lastException As Exception, ByRef retryInterval As TimeSpan) As Boolean

Parameters

currentRetryCount
Int32

The current retry count.

lastException
Exception

The last exception.

retryInterval
TimeSpan

The retry interval.

Returns

Whether or not to retry

Implements

Applies to