IRetryPolicy.ShouldRetry(Int32, Exception, TimeSpan) 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.
Method called by DeviceClient prior to a retry.
public bool ShouldRetry (int currentRetryCount, Exception lastException, out TimeSpan retryInterval);
abstract member ShouldRetry : int * Exception * TimeSpan -> bool
Public Function ShouldRetry (currentRetryCount As Integer, lastException As Exception, ByRef retryInterval As TimeSpan) As Boolean
Parameters
- currentRetryCount
- Int32
The number of times the current operation has been attempted.
- lastException
- Exception
The exception that caused this retry policy check.
- retryInterval
- TimeSpan
Set this to the desired delay prior to the next attempt.
Returns
True if the operation should be retried. False otherwise.
Applies to
Samarbeta med oss på GitHub
Källan för det här innehållet finns på GitHub, där du även kan skapa och granska ärenden och pull-begäranden. Se vår deltagarguide för mer information.
Azure SDK for .NET