你当前正在访问 Microsoft Azure Global Edition 技术文档网站。 如果需要访问由世纪互联运营的 Microsoft Azure 中国技术文档网站,请访问 https://docs.azure.cn。
ClientRetryPolicy.GetNextDelay(PipelineMessage, Int32) 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 determine how long the policy should wait before re-sending the request.
protected virtual TimeSpan GetNextDelay (System.ClientModel.Primitives.PipelineMessage message, int tryCount);
abstract member GetNextDelay : System.ClientModel.Primitives.PipelineMessage * int -> TimeSpan
override this.GetNextDelay : System.ClientModel.Primitives.PipelineMessage * int -> TimeSpan
Protected Overridable Function GetNextDelay (message As PipelineMessage, tryCount As Integer) As TimeSpan
Parameters
- message
- PipelineMessage
The PipelineMessage for this pipeline invocation.
- tryCount
- Int32
A number indicating how many times the policy has tried to send the request.
Returns
The amount of time to wait before the next retry attempt.
Applies to
反馈
https://aka.ms/ContentUserFeedback。
即将发布:在整个 2024 年,我们将逐步淘汰作为内容反馈机制的“GitHub 问题”,并将其取代为新的反馈系统。 有关详细信息,请参阅:提交和查看相关反馈