BaseRequestExtensions.WithMaxRetry Method

Definition

Overloads

WithMaxRetry<T>(T, Int32)

Sets the maximum number of retries to the default Retry Middleware Handler for this request. This only works with the default Retry Middleware Handler. If you use a custom Retry Middleware Handler, you have to handle it's retrieval in your implementation.

WithMaxRetry<T>(T, TimeSpan)

Sets the maximum time for request retries to the default Retry Middleware Handler for this request. This only works with the default Retry Middleware Handler. If you use a custom Retry Middleware Handler, you have to handle it's retrieval in your implementation.

WithMaxRetry<T>(T, Int32)

Sets the maximum number of retries to the default Retry Middleware Handler for this request. This only works with the default Retry Middleware Handler. If you use a custom Retry Middleware Handler, you have to handle it's retrieval in your implementation.

public static T WithMaxRetry<T> (this T baseRequest, int maxRetry) where T : Microsoft.Graph.IBaseRequest;
static member WithMaxRetry : 'T * int -> 'T (requires 'T :> Microsoft.Graph.IBaseRequest)
<Extension()>
Public Function WithMaxRetry(Of T As IBaseRequest) (baseRequest As T, maxRetry As Integer) As T

Type Parameters

T

Parameters

baseRequest
T

The BaseRequest for the request.

maxRetry
Int32

The maxRetry for the request.

Returns

T

Applies to

WithMaxRetry<T>(T, TimeSpan)

Sets the maximum time for request retries to the default Retry Middleware Handler for this request. This only works with the default Retry Middleware Handler. If you use a custom Retry Middleware Handler, you have to handle it's retrieval in your implementation.

public static T WithMaxRetry<T> (this T baseRequest, TimeSpan retriesTimeLimit) where T : Microsoft.Graph.IBaseRequest;
static member WithMaxRetry : 'T * TimeSpan -> 'T (requires 'T :> Microsoft.Graph.IBaseRequest)
<Extension()>
Public Function WithMaxRetry(Of T As IBaseRequest) (baseRequest As T, retriesTimeLimit As TimeSpan) As T

Type Parameters

T

Parameters

baseRequest
T

The BaseRequest for the request.

retriesTimeLimit
TimeSpan

The retriestimelimit for the request in seconds.

Returns

T

Applies to