Table of Contents

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

delay TimeSpan
maxAttempts int

Returns

Retry

Exceptions

ArgumentOutOfRangeException

delay is negative, or maxAttempts is below 1. One is the floor because it counts the first execution — a policy allowing zero attempts describes a job that never runs.