Table of Contents

Class Watchdog

Namespace
ReFuel
Assembly
ReFuel.dll
public class Watchdog
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()

public void Assert()

CancelToken(CancellationTokenSource?)

public CancellationTokenSource CancelToken(CancellationTokenSource? source = null)

Parameters

source CancellationTokenSource

Returns

CancellationTokenSource

Disable()

public void Disable()

Enable()

public void Enable()

FailFastWhenExpired()

public void FailFastWhenExpired()

NotifyExpiry(SynchronizationContext)

public void NotifyExpiry(SynchronizationContext context)

Parameters

context SynchronizationContext

Reset()

public void 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