Table of Contents

Interface IEstablishesTenantContext

Namespace
Excalibur.Dispatch
Assembly
Excalibur.Dispatch.Abstractions.dll

Marks middleware that ESTABLISHES the ambient tenant for the rest of the pipeline.

public interface IEstablishesTenantContext
Extension Methods

Remarks

The pipeline asserts ordering between these markers rather than between named types, and that is the point of them: the durable statement is "anything that reads tenant context runs after the thing that establishes it". Which concrete middleware happens to establish it is an accident of today's middleware set, and a rule written against a type list cannot cover a middleware that does not exist yet — including one written by a consumer of this framework.

A middleware establishes tenant context when it opens an ambient scope that remains open for the duration of the call to the next middleware. Implement this only if that is true of your type: the pipeline uses it to decide what is allowed to run before you.