RetryHandlerOption.ShouldRetry Property
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.
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)