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.
Applies to
GitHub で Microsoft と共同作業する
このコンテンツのソースは GitHub にあります。そこで、issue や pull request を作成および確認することもできます。 詳細については、共同作成者ガイドを参照してください。
Azure SDK for .NET