Claudalisk.Dispatching.Abstractions
0.1.0-alpha.5
dotnet add package Claudalisk.Dispatching.Abstractions --version 0.1.0-alpha.5
NuGet\Install-Package Claudalisk.Dispatching.Abstractions -Version 0.1.0-alpha.5
<PackageReference Include="Claudalisk.Dispatching.Abstractions" Version="0.1.0-alpha.5" />
<PackageVersion Include="Claudalisk.Dispatching.Abstractions" Version="0.1.0-alpha.5" />
<PackageReference Include="Claudalisk.Dispatching.Abstractions" />
paket add Claudalisk.Dispatching.Abstractions --version 0.1.0-alpha.5
#r "nuget: Claudalisk.Dispatching.Abstractions, 0.1.0-alpha.5"
#:package Claudalisk.Dispatching.Abstractions@0.1.0-alpha.5
#addin nuget:?package=Claudalisk.Dispatching.Abstractions&version=0.1.0-alpha.5&prerelease
#tool nuget:?package=Claudalisk.Dispatching.Abstractions&version=0.1.0-alpha.5&prerelease
Claudalisk.Dispatching.Abstractions
The contracts of the dispatcher, and the only dispatching package that an Interfaces project references. Claudalisk.Dispatching implements them.
Messages and handlers
A message is a class whose name ends in Command or Query. MessageContext.KindOf throws InvalidOperationException for any other name.
public sealed class ShipOrderHandler : IHandler<ShipOrderCommand, ShippedOrder>
{
public ValueTask<ShippedOrder> HandleAsync(ShipOrderCommand message, CancellationToken cancellationToken) { ... }
}
IDispatcher.SendAsync<TResult>(message) finds the handler for the message type and returns its result. The overload without a type argument returns object?.
Pipeline
IPipelineStep has an Order and an InvokeAsync(context, next, cancellationToken). The dispatcher sorts steps by order. PipelineOrder names the built-in positions: Logging 1000, Validation 2000, Retry 3000 and UnitOfWork 4000. Steps below Retry are outer steps and run once. Steps above it run in each attempt. No step may use the Retry order.
IOuterPipeline.RunAsync runs only the outer steps around a delegate, for work that has no handler. Its kind can also be MessageKind.Event.
Other types
MessageContext: the message, its type, its result type and itsMessageKind.MessageValidationException: carriesMessageTypeandErrors, a map from member name to messages. The web package maps it to 400.JobReference: module, job id and URL of a queued job.
| Product | Versions Compatible and additional computed target framework versions. |
|---|---|
| .NET | net10.0 is compatible. net10.0-android was computed. net10.0-browser was computed. net10.0-ios was computed. net10.0-maccatalyst was computed. net10.0-macos was computed. net10.0-tvos was computed. net10.0-windows was computed. net11.0 is compatible. |
-
net10.0
- No dependencies.
-
net11.0
- No dependencies.
NuGet packages (2)
Showing the top 2 NuGet packages that depend on Claudalisk.Dispatching.Abstractions:
| Package | Downloads |
|---|---|
|
Claudalisk.AspNetCore
What every Host needs: one Problem Details handler, conditional writes, HAL members, the health endpoint and module tags in the OpenAPI document. |
|
|
Claudalisk.Dispatching
The in-process dispatcher: handlers found through module registration and a pipeline of logging, validation and the unit of work. |
GitHub repositories
This package is not used by any popular GitHub repositories.
| Version | Downloads | Last Updated |
|---|---|---|
| 0.1.0-alpha.5 | 98 | 11/24/2026 |
| 0.1.0-alpha.4 | 178 | 11/22/2026 |
| 0.1.0-alpha.3 | 86 | 11/22/2026 |
| 0.1.0-alpha.2 | 90 | 11/21/2026 |
| 0.1.0-alpha.1 | 690 | 11/8/2026 |