Class Watchdog
- Namespace
- ReFuel
- Assembly
- ReFuel.dll
- Inheritance
-
Watchdog
- Inherited Members
-
Constructors
Watchdog(TimeSpan)
public Watchdog(TimeSpan expires)
Parameters
expires
TimeSpan
Properties
Expires
public TimeSpan Expires { get; set; }
Property Value
- TimeSpan
IsEnabled
public bool IsEnabled { get; }
Property Value
- bool
IsExpired
public bool IsExpired { get; }
Property Value
- bool
ResetAt
public TimeSpan ResetAt { get; }
Property Value
- TimeSpan
Methods
Assert()
CancelToken(CancellationTokenSource?)
public CancellationTokenSource CancelToken(CancellationTokenSource? source = null)
Parameters
source
CancellationTokenSource
Returns
- CancellationTokenSource
Disable()
Enable()
FailFastWhenExpired()
public void FailFastWhenExpired()
NotifyExpiry(SynchronizationContext)
public void NotifyExpiry(SynchronizationContext context)
Parameters
context
SynchronizationContext
Reset()
Watch(Task)
public Task Watch(Task task)
Parameters
task
Task
Returns
- Task
Watch<T>(Task<T>)
public Task<T> Watch<T>(Task<T> task)
Parameters
task
Task<T>
Returns
- Task<T>
Type Parameters
T