Class RouteBuilderModule

Assembly: redb.Tsak.Core.dll

Adapter wrapping an IRouteBuilder implementation as an ITsakModule.
During Initialize a is registered with the context via
AddRoutes so its routes are actually compiled at Start (issue #3).

public class RouteBuilderModule : ITsakModule

Inheritance

Object→RouteBuilderModule

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; }

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