Excalibur.Dispatch.Hosting.AspNetCore
10.0.0-alpha.21
dotnet add package Excalibur.Dispatch.Hosting.AspNetCore --version 10.0.0-alpha.21
NuGet\Install-Package Excalibur.Dispatch.Hosting.AspNetCore -Version 10.0.0-alpha.21
<PackageReference Include="Excalibur.Dispatch.Hosting.AspNetCore" Version="10.0.0-alpha.21" />
<PackageVersion Include="Excalibur.Dispatch.Hosting.AspNetCore" Version="10.0.0-alpha.21" />
<PackageReference Include="Excalibur.Dispatch.Hosting.AspNetCore" />
paket add Excalibur.Dispatch.Hosting.AspNetCore --version 10.0.0-alpha.21
#r "nuget: Excalibur.Dispatch.Hosting.AspNetCore, 10.0.0-alpha.21"
#:package Excalibur.Dispatch.Hosting.AspNetCore@10.0.0-alpha.21
#addin nuget:?package=Excalibur.Dispatch.Hosting.AspNetCore&version=10.0.0-alpha.21&prerelease
#tool nuget:?package=Excalibur.Dispatch.Hosting.AspNetCore&version=10.0.0-alpha.21&prerelease
Excalibur.Dispatch.Hosting.AspNetCore
ASP.NET Core hosting integration for the Excalibur framework.
Installation
dotnet add package Excalibur.Dispatch.Hosting.AspNetCore
Configuration
var builder = WebApplication.CreateBuilder(args);
builder.Services.AddDispatch(options =>
{
options.AddHandlersFromAssembly(typeof(Program).Assembly);
});
builder.Services.AddDispatchExceptionHandler();
var app = builder.Build();
app.UseExceptionHandler();
// Map one endpoint per action. The request is bound, dispatched, and its result returned.
app.DispatchPostAction<GreetRequest, GreetAction, string>("/greet");
app.Run();
Features
- Automatic handler registration
- Health check endpoints
- OpenAPI/Swagger integration
- Request/response middleware
- Dependency injection integration
- Framework exception status mapping and problem details with production-safe responses
AddDispatchExceptionHandler uses the existing Dispatch ASP.NET Core integration package. Production
responses retain the mapped HTTP status and public per-property validation errors, while internal
messages and stack traces remain in server logs. Development responses include diagnostic details.
Customize status reference URLs through its optional configuration callback. Call UseExceptionHandler
to activate the registered handler; multiple handler types run in registration order.
Existing Excalibur.Hosting.Web.AddGlobalExceptionHandler consumers retain their original entry point,
options type and logger category, including demystified development stack traces. The lean Dispatch
handler uses the exception's standard ToString() diagnostic text and does not add a Demystifier
dependency. Both handlers omit stack traces and error codes outside Development.
License
This project is multi-licensed under:
See LICENSE for details.
| 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. |
-
net10.0
- CloudNative.CloudEvents (>= 2.8.0)
- CloudNative.CloudEvents.SystemTextJson (>= 2.8.0)
- Cronos (>= 0.12.0)
- Excalibur.Dispatch (>= 10.0.0-alpha.21)
- Excalibur.Dispatch.Abstractions (>= 10.0.0-alpha.21)
- Medo.Uuid7 (>= 3.2.0)
NuGet packages (2)
Showing the top 2 NuGet packages that depend on Excalibur.Dispatch.Hosting.AspNetCore:
| Package | Downloads |
|---|---|
|
Excalibur.Hosting.Web
ASP.NET Core web-host integration for Excalibur applications, including HTTP pipeline and endpoint composition support. PRE-RELEASE: the public API is not frozen and may change between pre-release builds. Not recommended for production use. Known issues: https://docs.excalibur-dispatch.dev/docs/known-issues |
|
|
Excalibur.Dispatch.AspNetCore
Experience metapackage bundling Excalibur.Dispatch with ASP.NET Core hosting, request-scope-aware handler resolution, and observability. Provides a single AddDispatchAspNetCore() call for the common web scenario. PRE-RELEASE: the public API is not frozen and may change between pre-release builds. Not recommended for production use. Known issues: https://docs.excalibur-dispatch.dev/docs/known-issues |
GitHub repositories
This package is not used by any popular GitHub repositories.
| Version | Downloads | Last Updated |
|---|---|---|
| 10.0.0-alpha.21 | 93 | 11/1/2026 |
| 10.0.0-alpha.20 | 73 | 10/30/2026 |
| 10.0.0-alpha.19 | 78 | 10/27/2026 |
| 10.0.0-alpha.18 | 87 | 10/25/2026 |
| 10.0.0-alpha.17 | 93 | 10/23/2026 |
| 10.0.0-alpha.16 | 87 | 10/21/2026 |
| 10.0.0-alpha.15 | 70 | 10/11/2026 |
| 10.0.0-alpha.14 | 79 | 10/2/2026 |
| 10.0.0-alpha.13 | 85 | 9/29/2026 |
| 10.0.0-alpha.12 | 90 | 9/25/2026 |
| 10.0.0-alpha.11 | 87 | 9/15/2026 |
| 10.0.0-alpha.10 | 101 | 9/6/2026 |
| 10.0.0-alpha.9 | 95 | 8/31/2026 |
| 10.0.0-alpha.8 | 105 | 8/14/2026 |
| 10.0.0-alpha.7 | 101 | 8/13/2026 |
| 10.0.0-alpha.6 | 101 | 8/11/2026 |
| 10.0.0-alpha.5 | 97 | 8/10/2026 |
| 10.0.0-alpha.4 | 104 | 8/10/2026 |
| 3.0.0-alpha.216 | 117 | 6/30/2026 |
| 3.0.0-alpha.215 | 98 | 6/23/2026 |
Release notes and versioning policy: https://docs.excalibur-dispatch.dev/docs/migration/version-upgrades