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
dueTimerDueThe timer that fired.
cancellationTokenCancellationTokenPropagated to the handling.