BaseRequestExtensions.WithMaxRetry Method
Definition
Important
Some information relates to prerelease product that may be substantially modified before it’s released. Microsoft makes no warranties, express or implied, with respect to the information provided here.
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
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.