Struct ModuleActivationReport

Assembly: redb.Tsak.Core.dll

What the coordinator could not bring up while activating modules in their contexts.

The coordinator deliberately swallows (and logs) a module's Initialize exception and a
context start exception, so that one bad module can never crash the node. Callers that must
react to a module that did not come up — a hot swap, a package reload, a cluster assignment —
read this report instead of waiting for an exception that never arrives.


default means "nothing failed", which is also what an unconfigured test double returns.
Endpoint start failures that redb.Route isolates inside an otherwise started context are NOT
reported: Tsak does not see them.

public readonly struct ModuleActivationReport

Properties

Failures

public IReadOnlyList<ModuleActivationFailure> Failures { get; }

Succeeded

public bool Succeeded { get; }

Success

A report with no failures.

public static ModuleActivationReport Success { get; }

Methods

FailureFor(string)

The first failure recorded for moduleName, or null when that module came up.

public ModuleActivationFailure? FailureFor(string moduleName)

Constructors