Interface IBackOff
Strategy interface to control back-off between retry attempts.
Namespace: Google.Apis.Util
Assembly: Google.Apis.Core.dll
Syntax
public interface IBackOff
Properties
MaxNumOfRetries
Gets the maximum number of retries.
Declaration
int MaxNumOfRetries { get; }
Property Value
| Type | Description |
|---|---|
| int |
Methods
GetNextBackOff(int)
Gets the a time span to wait before next retry. If the current retry reached the maximum number of retries, the returned value is MinValue.
Declaration
TimeSpan GetNextBackOff(int currentRetry)
Parameters
| Type | Name | Description |
|---|---|---|
| int | currentRetry |
Returns
| Type | Description |
|---|---|
| TimeSpan |