共用方式為


RetryHandlerOption.ShouldRetry Property

Definition

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

public Func<int,int,System.Net.Http.HttpResponseMessage,bool> ShouldRetry { get; set; }
member this.ShouldRetry : Func<int, int, System.Net.Http.HttpResponseMessage, bool> with get, set
Public Property ShouldRetry As Func(Of Integer, Integer, HttpResponseMessage, Boolean)

Property Value

Applies to