Class TsakModuleRegistry

Assembly: redb.Tsak.Core.dll

Thread-safe module registry with assembly scanning, batch events, and version tracking.
Based on lt.tsak RouteModuleRegistry, redesigned for redb.Route.

public class TsakModuleRegistry : ITsakModuleRegistry

Inheritance

Object→TsakModuleRegistry

Implements

Properties

LoadedPackages

Packages loaded during startup discovery and not handed over yet ().

public IReadOnlyDictionary<string, ModulePackage> LoadedPackages { get; }

Methods

DiscoverModulesAsync(IEnumerable<string>, string[]?, bool)

Discovers modules in assemblies and .tpkg packages at the specified paths.

public Task<int> DiscoverModulesAsync(IEnumerable<string> assemblyPaths, string[]? probePaths, bool collectible)

DiscoverModulesAsync(IEnumerable<string>)

Discovers modules in assemblies at the specified paths.

public Task<int> DiscoverModulesAsync(IEnumerable<string> assemblyPaths)

GetAllModules()

Returns all registered modules.

public IReadOnlyList<ITsakModule> GetAllModules()

GetModule(string)

Gets a module by name.

public ITsakModule? GetModule(string moduleName)

GetModulesByStatus(TsakModuleStatus)

Returns modules with the specified status.

public IReadOnlyList<ITsakModule> GetModulesByStatus(TsakModuleStatus status)

RegisterModuleAsync(ITsakModule)

Registers a single module manually (awaits the store — no sync-over-async).

public Task RegisterModuleAsync(ITsakModule module)

RegisterStaticProvidersAsync(IEnumerable<IStaticModuleProvider>)

Registers modules from static (compile-time) providers.

public Task<int> RegisterStaticProvidersAsync(IEnumerable<IStaticModuleProvider> providers)

ReplaceModuleSilentAsync(ITsakModule)

Replaces a module in the registry without firing any events.

public Task ReplaceModuleSilentAsync(ITsakModule module)

UnregisterModuleAsync(string)

Unregisters a module by name (awaits the store).

public Task<bool> UnregisterModuleAsync(string moduleName)

UnregisterModuleSilent(string)

Removes a module from the registry without firing events.

public bool UnregisterModuleSilent(string moduleName)

Constructors