Interface IBackOff (1.59.0)

public interface IBackOff

Strategy interface to control back-off between retry attempts.

Namespace

Google.Apis.Util

Assembly

Google.Apis.Core.dll

Properties

MaxNumOfRetries

int MaxNumOfRetries { get; }

Gets the maximum number of retries.

Property Value
TypeDescription
Int32

Methods

GetNextBackOff(Int32)

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
currentRetryInt32
Returns
TypeDescription
TimeSpan

Extension Method