Compartir a través de


RetryHandlerOption Class

Definition

The retry middleware option class

public class RetryHandlerOption : Microsoft.Graph.IMiddlewareOption
type RetryHandlerOption = class
    interface IMiddlewareOption
Public Class RetryHandlerOption
Implements IMiddlewareOption
Inheritance
RetryHandlerOption
Implements

Constructors

RetryHandlerOption()

Constructs a new RetryHandlerOption

Properties

Delay

The waiting time in seconds before retrying a request with a maximum value of 180 seconds. This defaults to 3 seconds.

MaxRetry

The maximum number of retries for a request with a maximum value of 10. This defaults to 3.

RetriesTimeLimit

The maximum time allowed for request retries.

ShouldRetry

A delegate that's called to determine whether a request should be retried or not. The delegate method should accept a delay time in seconds of, number of retry attempts and HttpResponseMessage as it's parameters and return a Boolean. This defaults to true

Applies to