Class XmlRouteModule

Assembly: redb.Tsak.Core.dll

The third module convention (Route-XML Ф5.2): XML route artifacts from the package manifest,
loaded into the context through the standard — which registers
routes via AddRoutes by construction, so the issue #3 trap (routes silently never
compiling) cannot recur. Bean type names resolve package-first (entry-point ALC, then
companions, then everything the default resolver sees — shared and Default ALC); artifact
file-references resolve from the package's extracted resources. Discovery order guarantees
assemblies are scanned before XML, so bean:#name objects registered by module code
are visible to the artifacts.

public sealed class XmlRouteModule : ITsakModule, IEmbeddedConfigModule

Inheritance

Object→XmlRouteModule

Implements

Properties

CanInitialize

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

public bool CanInitialize { get; }

Dependencies

Names of modules this module depends on.

public IReadOnlyList<string> Dependencies { get; }

Description

Human-readable description.

public string Description { get; }

EmbeddedConfigJson

Raw JSON of the embedded {Name}.config.json; null when the package carries none.

public string? EmbeddedConfigJson { get; }

ModuleName

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

public string ModuleName { get; }

SourceDirectory

Directory where the module's DLL was loaded from.

public string? SourceDirectory { get; }

Status

Current lifecycle status.

public TsakModuleStatus Status { get; }

Version

Module version string.

public string Version { get; }

Methods

Initialize(IRouteContext)

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

public IRouteContext Initialize(IRouteContext context)

Constructors