ClientRetryPolicy.Wait(TimeSpan, CancellationToken) 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.
A method that can be overridden by derived types to customize the default ClientRetryPolicy logic. It is called from Process(PipelineMessage, IReadOnlyList<PipelinePolicy>, Int32) to wait the time interval returned by GetNextDelay(PipelineMessage, Int32).
protected virtual void Wait (TimeSpan time, System.Threading.CancellationToken cancellationToken);
abstract member Wait : TimeSpan * System.Threading.CancellationToken -> unit
override this.Wait : TimeSpan * System.Threading.CancellationToken -> unit
Protected Overridable Sub Wait (time As TimeSpan, cancellationToken As CancellationToken)
Parameters
- time
- TimeSpan
The amount of time to wait before trying to send the request again.
- cancellationToken
- CancellationToken
The CancellationToken used to cancel the wait if needed.