Interface ITsakModuleRegistry
Registry managing discovery, registration, and lifecycle of route modules.
Thread-safe. Fires events for coordinator subscription.
Equivalent of lt.tsak IRouteModuleRegistry.
public interface ITsakModuleRegistry
Methods
DiscoverModulesAsync(IEnumerable<string>)
Discovers modules in assemblies at the specified paths.
Task<int> DiscoverModulesAsync(IEnumerable<string> assemblyPaths)
GetModulesByStatus(TsakModuleStatus)
Returns modules with the specified status.
IReadOnlyList<ITsakModule> GetModulesByStatus(TsakModuleStatus status)
RegisterModuleAsync(ITsakModule)
Registers a single module manually (awaits the store — no sync-over-async).
Task RegisterModuleAsync(ITsakModule module)
RegisterStaticProvidersAsync(IEnumerable<IStaticModuleProvider>)
Registers modules from static (compile-time) providers.
Task<int> RegisterStaticProvidersAsync(IEnumerable<IStaticModuleProvider> providers)
ReplaceModuleSilentAsync(ITsakModule)
Replaces a module in the registry without firing events (used by hot-swap; awaits the store).
Task ReplaceModuleSilentAsync(ITsakModule module)
UnregisterModuleAsync(string)
Unregisters a module by name (awaits the store).
Task<bool> UnregisterModuleAsync(string moduleName)
UnregisterModuleSilent(string)
Unregisters a module without firing events (used during package reload to preserve state).
bool UnregisterModuleSilent(string moduleName)