DelayStrategy Class
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.
Strategy to control delay behavior.
public abstract class DelayStrategy
type DelayStrategy = class
Public MustInherit Class DelayStrategy
- Inheritance
-
DelayStrategy
Constructors
DelayStrategy(Nullable<TimeSpan>, Double) |
Constructs a new instance of DelayStrategy. This constructor can be used by derived classes to customize the jitter factor and max delay. |
Methods
CreateExponentialDelayStrategy(Nullable<TimeSpan>, Nullable<TimeSpan>) |
Constructs an exponential delay with jitter. |
CreateFixedDelayStrategy(Nullable<TimeSpan>) |
Constructs a fixed delay with jitter. |
GetNextDelay(Response, Int32) |
Gets the next delay interval taking into account the Max Delay, jitter, and any Retry-After headers. |
GetNextDelayCore(Response, Int32) |
Gets the next delay interval. Implement this method to provide custom delay logic. The Max Delay, jitter, and any Retry-After headers will be applied to the value returned from this method. |
Max(TimeSpan, TimeSpan) |
Gets the maximum of two TimeSpan values. |
Min(TimeSpan, TimeSpan) |
Gets the minimum of two TimeSpan values. |
Applies to
Azure SDK for .NET
피드백
https://aka.ms/ContentUserFeedback
출시 예정: 2024년 내내 콘텐츠에 대한 피드백 메커니즘으로 GitHub 문제를 단계적으로 폐지하고 이를 새로운 피드백 시스템으로 바꿀 예정입니다. 자세한 내용은 다음을 참조하세요.다음에 대한 사용자 의견 제출 및 보기