Interface IBackOff (1.60.0)

public interface IBackOff

Strategy interface to control back-off between retry attempts.

Namespace

GoogleApisUtil

Assembly

Google.Apis.Core.dll

Properties

MaxNumOfRetries

int MaxNumOfRetries { get; }

Gets the maximum number of retries.

Property Value
TypeDescription
int

Methods

GetNextBackOff(int)

TimeSpan GetNextBackOff(int currentRetry)

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.

Parameter
NameDescription
currentRetryint
Returns
TypeDescription
TimeSpan

Extension Method