RetryPolicy.OnShouldRetry(TimeSpan, Int32, 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.
Calculates the retry interval for the retry policy.
protected abstract bool OnShouldRetry (TimeSpan remainingTime, int currentRetryCount, out TimeSpan retryInterval);
abstract member OnShouldRetry : TimeSpan * int * TimeSpan -> bool
Protected MustOverride Function OnShouldRetry (remainingTime As TimeSpan, currentRetryCount As Integer, ByRef retryInterval As TimeSpan) As Boolean
Parameters
- remainingTime
- TimeSpan
The remaining time.
- currentRetryCount
- Int32
The total number of retries.
- retryInterval
- TimeSpan
The retry interval.
Returns
If this method returns true, the retry operation occurs after the
thread becomes idle for an amount of time equal to retryInterval
.
Applies to
Spolupracujte s námi na GitHubu
Zdroj tohoto obsahu najdete na GitHubu, kde můžete také vytvářet a kontrolovat problémy a žádosti o přijetí změn. Další informace najdete v našem průvodci pro přispěvatele.
Azure SDK for .NET