Interface ITsakLifecycleHook
Generic lifecycle hook for Tsak startup/shutdown.
Registered via DI, called by TsakHostedService in order.
public interface ITsakLifecycleHook
Properties
Order
Execution order: lower starts earlier and stops later (shutdown runs the hooks in reverse order).
int Order { get; }
Methods
OnStartingAsync(CancellationToken)
Called during Tsak startup, before module discovery.
Task OnStartingAsync(CancellationToken ct)
OnStoppingAsync(CancellationToken)
Called during Tsak shutdown, before the contexts are stopped and drained.
Task OnStoppingAsync(CancellationToken ct)