Skip to main content
Table of Contents

Interface ITimerHandler

Namespace
Stratara.Abstractions.Timers
Assembly
Stratara.Abstractions.dll

Receives timers that are due and whose owner exists. Implemented by the host. Resolved from a fresh scope per firing, so it may take scoped dependencies.

public interface ITimerHandler
Extension Methods

Methods

OnDueAsync(TimerDue, CancellationToken)

Handles a due timer. Throwing keeps the timer registered for a retry.

Task OnDueAsync(TimerDue due, CancellationToken cancellationToken)

Parameters

due TimerDue

The timer that fired.

cancellationToken CancellationToken

Propagated to the handling.

Returns

Task