IotHubServiceRetryPolicyBase.ShouldRetry(UInt32, 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 the client prior to a retry.
public virtual bool ShouldRetry (uint currentRetryCount, Exception lastException, out TimeSpan retryDelay);
abstract member ShouldRetry : uint32 * Exception * TimeSpan -> bool
override this.ShouldRetry : uint32 * Exception * TimeSpan -> bool
Public Overridable Function ShouldRetry (currentRetryCount As UInteger, lastException As Exception, ByRef retryDelay As TimeSpan) As Boolean
Parameters
- currentRetryCount
- UInt32
The number of times the current operation has been attempted.
- lastException
- Exception
The exception that caused this retry policy check.
- retryDelay
- TimeSpan
Set this to the desired delay prior to the next attempt.
Returns
True if the operation should be retried, otherwise false.
Implements
Applies to
GitHub'da bizimle işbirliği yapın
Bu içeriğin kaynağı GitHub'da bulunabilir; burada ayrıca sorunları ve çekme isteklerini oluşturup gözden geçirebilirsiniz. Daha fazla bilgi için katkıda bulunan kılavuzumuzu inceleyin.
Azure SDK for .NET