Class NoneStrategy
- Namespace
- Kampute.HttpClient.RetryManagement.Strategies
- Assembly
- Kampute.HttpClient.dll
A retry strategy that always indicates no retry should be attempted.
public sealed class NoneStrategy : IRetryStrategy
- Inheritance
-
NoneStrategy
- Implements
- Inherited Members
- Extension Methods
Properties
Instance
Gets the singleton instance of the NoneStrategy class.
public static NoneStrategy Instance { get; }
Property Value
- NoneStrategy
The singleton instance of the NoneStrategy class.
Methods
TryGetRetryDelay(TimeSpan, uint, out TimeSpan)
Always returns false to indicate that no further retry attempts should be made, setting the delay to its default value.
public bool TryGetRetryDelay(TimeSpan elapsed, uint attempts, out TimeSpan delay)
Parameters
elapsed
TimeSpanThe total time elapsed since the start of retry attempts. This parameter is ignored in this implementation.
attempts
uintThe number of retry attempts made so far. This parameter is ignored in this implementation.
delay
TimeSpanWhen this method returns, contains the default value for TimeSpan, indicating no delay. This parameter is passed uninitialized.