BaseRequestExtensions.WithShouldRetry<T> 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.
Sets a ShouldRetry delegate 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 WithShouldRetry<T> (this T baseRequest, Func<int,int,System.Net.Http.HttpResponseMessage,bool> shouldRetry) where T : Microsoft.Graph.IBaseRequest;
static member WithShouldRetry : 'T * Func<int, int, System.Net.Http.HttpResponseMessage, bool> -> 'T (requires 'T :> Microsoft.Graph.IBaseRequest)
<Extension()>
Public Function WithShouldRetry(Of T As IBaseRequest) (baseRequest As T, shouldRetry As Func(Of Integer, Integer, HttpResponseMessage, Boolean)) As T
Type Parameters
- T
Parameters
- baseRequest
- T
The BaseRequest for the request.
- shouldRetry
- Func<Int32,Int32,HttpResponseMessage,Boolean>
A Func<T1,T2,T3,TResult> for the request.
Returns
T