Mediator API
Trax.Mediator runs a train from its input or its name rather than from an injected train
interface: ITrainBus dispatches by the input's type in process, ITrainExecutionService by name
with JSON input. How the pieces fit is on Mediator.
Trax.Mediator
| Page | What it documents |
|---|---|
| ITrainBus | RunAsync, RunByNameAsync and InitializeTrain: in-process dispatch by input type or by name |
| ITrainDiscoveryService | The registered trains, as TrainRegistration records |
| ITrainExecutionService | QueueAsync, RunAsync and PrepareAsync: a train by name, with JSON input |
| TrainInputReader | The rules every surface reads train input JSON by |
| Mediator exceptions | The exceptions in Trax.Mediator.Exceptions |
| Concurrency limits | ConcurrentRunLimit, PerPrincipalMaxConcurrentRun, GlobalConcurrentRunLimit and [TraxConcurrencyLimit] |
| IConcurrencyLimiter | The permit gate behind the concurrency limits |
| ICurrentPrincipalProvider | The caller id the per-principal limit buckets by |
| ITrustedExecutionScope | Marks an async flow as trusted infrastructure, which skips per-train authorization |
| MediatorConfiguration | The resolved mediator settings, readable from the container |
| AddMediator | Where AddMediator is documented |
| AddServiceTrainBus | The registration AddMediator performs, and RegisterServiceTrains |
Trax.Effect.Data
| Page | What it documents |
|---|---|
| IEnqueueContextAccessor | The data context an enqueue commits on, for an OnQueue hook. AddMediator registers it |