Class InfiniteTimeoutTimer
A ITimeoutTimer that never times out.
public class InfiniteTimeoutTimer : ITimeoutTimer
- Inheritance
-
InfiniteTimeoutTimer
- Implements
- Inherited Members
Properties
Duration
Gets the total timeout duration, or InfiniteTimeSpan if the timer will never time out.
public TimeSpan Duration { get; }
Property Value
Instance
Gets the shared InfiniteTimeoutTimer instance.
public static ITimeoutTimer Instance { get; }
Property Value
IsExpired
Gets whether the timeout duration has expired.
public bool IsExpired { get; }
Property Value
Stopwatch
Gets the underlying IStopwatch used to measure elapsed time.
public IStopwatch Stopwatch { get; }
Property Value
TimeLeft
Gets the time left in the timer, or Zero if the timeout duration has expired, or InfiniteTimeSpan if the timer will never time out.
public TimeSpan TimeLeft { get; }
Property Value
Methods
ThrowIfExpired()
Throws a TimeoutException if the timeout timer has expired.
public void ThrowIfExpired()
Exceptions
- TimeoutException
The timeout has expired.