Class DynamicDelay
A helper class that produces dynamic delay values.
public class DynamicDelay
- Inheritance
-
DynamicDelay
- Inherited Members
Constructors
DynamicDelay(double, double, double)
Creates an instance of the DynamicDelay class.
public DynamicDelay(double baseDelay = 1, double maxDelay = 1440, double delayMultiplier = 3.4641)
Parameters
baseDelaydouble- The minimum delay.
maxDelaydouble- The maximum delay.
delayMultiplierdouble- The multiplier between adjacent delay values.
Exceptions
- ArgumentOutOfRangeException
baseDelayis negative or zero. -or-maxDelayis negative or zero. -or-delayMultiplieris less than or equal to 1.
Properties
CurrentPhase
The current phase.
public double CurrentPhase { get; }
Property Value
Methods
IncrementPhase(double)
Increments the current phase by the specified amount.
public double IncrementPhase(double amount = 1)
Parameters
amountdouble- The amount of phase to increment.
Returns
- double
- The next delay value.