Excalibur.Dispatch.Hosting.AspNetCore 10.0.0-alpha.21

This is a prerelease version of Excalibur.Dispatch.Hosting.AspNetCore.
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
                    
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="Excalibur.Dispatch.Hosting.AspNetCore" Version="10.0.0-alpha.21" />
                    
For projects that support PackageReference, copy this XML node into the project file to reference the package.
<PackageVersion Include="Excalibur.Dispatch.Hosting.AspNetCore" Version="10.0.0-alpha.21" />
                    
Directory.Packages.props
<PackageReference Include="Excalibur.Dispatch.Hosting.AspNetCore" />
                    
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 Excalibur.Dispatch.Hosting.AspNetCore --version 10.0.0-alpha.21
                    
#r "nuget: Excalibur.Dispatch.Hosting.AspNetCore, 10.0.0-alpha.21"
                    
#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 Excalibur.Dispatch.Hosting.AspNetCore@10.0.0-alpha.21
                    
#: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=Excalibur.Dispatch.Hosting.AspNetCore&version=10.0.0-alpha.21&prerelease
                    
Install as a Cake Addin
#tool nuget:?package=Excalibur.Dispatch.Hosting.AspNetCore&version=10.0.0-alpha.21&prerelease
                    
Install as a Cake Tool

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 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. 
Compatible target framework(s)
Included target framework(s) (in package)
Learn more about Target Frameworks and .NET Standard.

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
Loading failed