Claudalisk.Dispatching.Abstractions 0.1.0-alpha.5

This is a prerelease version of Claudalisk.Dispatching.Abstractions.
dotnet add package Claudalisk.Dispatching.Abstractions --version 0.1.0-alpha.5
                    
NuGet\Install-Package Claudalisk.Dispatching.Abstractions -Version 0.1.0-alpha.5
                    
This command is intended to be used within the Package Manager Console in Visual Studio, as it uses the NuGet module's version of Install-Package.
<PackageReference Include="Claudalisk.Dispatching.Abstractions" Version="0.1.0-alpha.5" />
                    
For projects that support PackageReference, copy this XML node into the project file to reference the package.
<PackageVersion Include="Claudalisk.Dispatching.Abstractions" Version="0.1.0-alpha.5" />
                    
Directory.Packages.props
<PackageReference Include="Claudalisk.Dispatching.Abstractions" />
                    
Project file
For projects that support Central Package Management (CPM), copy this XML node into the solution Directory.Packages.props file to version the package.
paket add Claudalisk.Dispatching.Abstractions --version 0.1.0-alpha.5
                    
#r "nuget: Claudalisk.Dispatching.Abstractions, 0.1.0-alpha.5"
                    
#r directive can be used in F# Interactive and Polyglot Notebooks. Copy this into the interactive tool or source code of the script to reference the package.
#:package Claudalisk.Dispatching.Abstractions@0.1.0-alpha.5
                    
#:package directive can be used in C# file-based apps starting in .NET 10 preview 4. Copy this into a .cs file before any lines of code to reference the package.
#addin nuget:?package=Claudalisk.Dispatching.Abstractions&version=0.1.0-alpha.5&prerelease
                    
Install as a Cake Addin
#tool nuget:?package=Claudalisk.Dispatching.Abstractions&version=0.1.0-alpha.5&prerelease
                    
Install as a Cake Tool

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 its MessageKind.
  • MessageValidationException: carries MessageType and Errors, 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 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. 
Compatible target framework(s)
Included target framework(s) (in package)
Learn more about Target Frameworks and .NET Standard.
  • 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