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
Azure SDK for .NET