Class TsakHostedService

Assembly: redb.Tsak.Core.dll

Main hosted service managing the Tsak runtime lifecycle.
Startup: init coordinator → start _system context (REST API) → register static providers (batch) → scan dynamic modules → maintenance loop.
Lifecycle hooks () run before module discovery and after shutdown.
Hot reload: periodically scans for updated module DLLs via .
Shutdown: stop all running contexts (+ cluster deregistration).

public class TsakHostedService : BackgroundService, IHostedService, IDisposable

Inheritance

Object→BackgroundService→TsakHostedService

Implements

Methods

ExecuteAsync(CancellationToken)

This method is called when the starts. The implementation should return a task that represents

protected override Task ExecuteAsync(CancellationToken stoppingToken)

StopAsync(CancellationToken)

Triggered when the application host is performing a graceful shutdown.

public override Task StopAsync(CancellationToken cancellationToken)

Constructors