Interface ITsakModule

Assembly: redb.Tsak.Core.dll

Contract for a route module that can be discovered, loaded, and initialized in a context.
Equivalent of lt.tsak IRouteModule, adapted for redb.Route.

public interface ITsakModule

Properties

CanInitialize

Whether the module can be initialized (all deps met, no errors).

bool CanInitialize { get; }

Dependencies

Names of modules this module depends on.

IReadOnlyList<string> Dependencies { get; }

Description

Human-readable description.

string Description { get; }

ModuleName

Unique module name (e.g. "DAL.GPS", "Api.Mobile").

string ModuleName { get; }

SourceDirectory

Directory where the module's DLL was loaded from.

string? SourceDirectory { get; }

Status

Current lifecycle status.

TsakModuleStatus Status { get; }

Version

Module version string.

string Version { get; }

Methods

Initialize(IRouteContext)

Initializes routes in the given context, synchronously. The coordinator reaches it through the

IRouteContext Initialize(IRouteContext context)

InitializeAsync(IRouteContext)

Initializes routes in the given context. This is the entry the coordinator awaits, and the context

Task<IRouteContext> InitializeAsync(IRouteContext context)