BackoffTimerHelper.GetExponentialBackoff Method
Namespace: Microsoft.VisualStudio.Services.Common
Assembly: Microsoft.VisualStudio.Services.Common (in Microsoft.VisualStudio.Services.Common.dll)
Syntax
'Declaration
Public Shared Function GetExponentialBackoff ( _
attempt As Integer, _
minBackoff As TimeSpan, _
maxBackoff As TimeSpan, _
deltaBackoff As TimeSpan _
) As TimeSpan
public static TimeSpan GetExponentialBackoff(
int attempt,
TimeSpan minBackoff,
TimeSpan maxBackoff,
TimeSpan deltaBackoff
)
public:
static TimeSpan GetExponentialBackoff(
int attempt,
TimeSpan minBackoff,
TimeSpan maxBackoff,
TimeSpan deltaBackoff
)
static member GetExponentialBackoff :
attempt:int *
minBackoff:TimeSpan *
maxBackoff:TimeSpan *
deltaBackoff:TimeSpan -> TimeSpan
public static function GetExponentialBackoff(
attempt : int,
minBackoff : TimeSpan,
maxBackoff : TimeSpan,
deltaBackoff : TimeSpan
) : TimeSpan
Parameters
- attempt
Type: System.Int32
- minBackoff
Type: System.TimeSpan
- maxBackoff
Type: System.TimeSpan
- deltaBackoff
Type: System.TimeSpan
Return Value
Type: System.TimeSpan
.NET Framework Security
- Full trust for the immediate caller. This member cannot be used by partially trusted code. For more information, see Using Libraries from Partially Trusted Code.