Interface IBackOff

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 .

Parameter
TypeNameDescription
Int32currentRetry
Returns
TypeDescription
TimeSpan

Extension Method