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
System.Int32

The current retry count.

lastException
System.Exception

The last exception.

retryInterval
System.TimeSpan

The retry interval.

Returns

System.Boolean

Whether or not to retry

Implements

Applies to