Class MiddlewareRegistry
- Namespace
- Signal.Application.Pipeline
- Assembly
- Signal.Application.dll
Ordered list of middleware types. Built-in guards run first (exception handling, logging, access control, rate limiting), then user middleware in registration order, then event dispatching and finally command handling.
public sealed class MiddlewareRegistry
- Inheritance
-
MiddlewareRegistry
- Inherited Members
Properties
Middlewares
All middleware types in execution order.
public IReadOnlyList<Type> Middlewares { get; }
Property Value
Methods
Add(Type)
Adds a user middleware (after the built-in guards, before events and commands). Duplicates are ignored.
public void Add(Type middlewareType)
Parameters
middlewareTypeTypeA type implementing IMessageMiddleware; it must also be registered in DI.
Exceptions
- ArgumentException
The type does not implement IMessageMiddleware.