Interface ITsakCoordinator
Orchestrates module-to-context mapping.
Subscribes to registry events and creates/updates/removes contexts accordingly.
Equivalent of lt.tsak ModuleContextCoordinator.
public interface ITsakCoordinator
Methods
Initialize(ITsakModuleRegistry)
Initializes the coordinator and subscribes to registry events.
void Initialize(ITsakModuleRegistry registry)
ProcessBatchAsync(IReadOnlyList<ITsakModule>)
Handles a batch of newly added modules (e.g. from static providers).
Task<ModuleActivationReport> ProcessBatchAsync(IReadOnlyList<ITsakModule> modules)
ProcessModuleAddedAsync(ITsakModule)
Handles a single newly added module.
Task<ModuleActivationReport> ProcessModuleAddedAsync(ITsakModule module)
ProcessModuleRemovedAsync(string)
Handles module removal — stops and cleans up the associated context.
Task ProcessModuleRemovedAsync(string moduleName)
ProcessModuleUpdatedAsync(ITsakModule)
Handles module update — restarts the associated context with the new version.
Task ProcessModuleUpdatedAsync(ITsakModule module)
WaitForIdleAsync(CancellationToken)
Waits until every enqueued registry-event has been processed by the background consumer.
Task WaitForIdleAsync(CancellationToken ct = default)