Method Fixed
- Namespace
- Millrace
- Assembly
- Millrace.dll
Fixed(TimeSpan, int)
A policy that waits the same delay before every retry.
public static Retry Fixed(TimeSpan delay, int maxAttempts)
Parameters
Returns
Exceptions
- ArgumentOutOfRangeException
delayis negative, ormaxAttemptsis below 1. One is the floor because it counts the first execution — a policy allowing zero attempts describes a job that never runs.