Skip to main content
Table of Contents

Namespace Stratara.Abstractions.Timers

Classes

TimerDue

A timer that has fired: the registration and the moment it fired.

TimerRegistration

A timer to register: who it belongs to, what it is for, and when it is due.

Interfaces

IDurableTimers

Durable, owner-checked, one-shot timers. A timer belongs to an owner — an aggregate, a process, a unit of work — and fires once at its due time, in one place per cluster, surviving restarts. When it fires, the owner is checked first: a timer whose owner is gone unregisters itself and does nothing. The operation that ends an owner cancels its timers in the same call.

ITimerHandler

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.

ITimerOwners

Answers whether a timer's owner still exists. Implemented by the host: an aggregate that has not been closed, a process that is still running, an intent that has not been completed.