Excalibur.Dispatch.AspNetCore
3.0.0-alpha.216
dotnet add package Excalibur.Dispatch.AspNetCore --version 3.0.0-alpha.216
NuGet\Install-Package Excalibur.Dispatch.AspNetCore -Version 3.0.0-alpha.216
<PackageReference Include="Excalibur.Dispatch.AspNetCore" Version="3.0.0-alpha.216" />
<PackageVersion Include="Excalibur.Dispatch.AspNetCore" Version="3.0.0-alpha.216" />
<PackageReference Include="Excalibur.Dispatch.AspNetCore" />
paket add Excalibur.Dispatch.AspNetCore --version 3.0.0-alpha.216
#r "nuget: Excalibur.Dispatch.AspNetCore, 3.0.0-alpha.216"
#:package Excalibur.Dispatch.AspNetCore@3.0.0-alpha.216
#addin nuget:?package=Excalibur.Dispatch.AspNetCore&version=3.0.0-alpha.216&prerelease
#tool nuget:?package=Excalibur.Dispatch.AspNetCore&version=3.0.0-alpha.216&prerelease
Excalibur.Dispatch.AspNetCore
Experience metapackage bundling Excalibur.Dispatch with ASP.NET Core hosting and observability. Provides a single AddDispatchAspNetCore() call for the common web scenario.
Installation
dotnet add package Excalibur.Dispatch.AspNetCore
Quick Start
var builder = WebApplication.CreateBuilder(args);
builder.Services.AddDispatchAspNetCore(dispatch =>
{
dispatch.AddHandlersFromAssembly(typeof(Program).Assembly);
});
var app = builder.Build();
app.MapControllers();
app.Run();
What's Included
This metapackage bundles:
Excalibur.Dispatch— Core messaging framework (dispatcher, pipeline, middleware)Excalibur.Dispatch.Hosting.AspNetCore— ASP.NET Core integration (controller/minimal-API helpers,HttpContext→ message-context bridge)Excalibur.Dispatch.Observability— OpenTelemetry metrics and tracing (AddDispatchInstrumentation())
AddDispatchAspNetCore() wires:
- The core dispatcher and pipeline (
AddDispatch) - Observability instrumentation (
UseObservability) - Ambient-scope resolution (
AddDispatchAmbientScope) — scoped message handlers (and handlers with scoped dependencies such asIUnitOfWork/IDb/DbContext) resolve from, and share state with, the active request scope. See ADR-335.
Scoped handlers
With this package, dispatching a scoped handler "just works" — including via the context-less
dispatcher.DispatchAsync(message, ct) overload — because the handler is resolved from the active
request scope rather than the root container. Outside a request (background work), each dispatch gets a
fresh scope that is disposed when the handler completes.
OpenTelemetry
To export metrics and traces, subscribe Dispatch instrumentation on your OpenTelemetry builder:
builder.Services.AddOpenTelemetry()
.WithMetrics(m => m.AddDispatchInstrumentation())
.WithTracing(t => t.AddDispatchInstrumentation());
| 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 (>= 3.0.0-alpha.216)
- Excalibur.Dispatch.Hosting.AspNetCore (>= 3.0.0-alpha.216)
- Excalibur.Dispatch.Observability (>= 3.0.0-alpha.216)
- Medo.Uuid7 (>= 3.2.0)
- Microsoft.ApplicationInsights (>= 3.1.0)
- Microsoft.ApplicationInsights.AspNetCore (>= 3.1.0)
- Microsoft.AspNetCore.Authorization (>= 10.0.7)
- Microsoft.Extensions.Configuration (>= 10.0.7)
- Microsoft.Extensions.Configuration.Abstractions (>= 10.0.7)
- Microsoft.Extensions.Configuration.Binder (>= 10.0.7)
- Microsoft.Extensions.DependencyInjection (>= 10.0.7)
- Microsoft.Extensions.DependencyInjection.Abstractions (>= 10.0.7)
- Microsoft.Extensions.Diagnostics.HealthChecks (>= 10.0.7)
- Microsoft.Extensions.Diagnostics.HealthChecks.Abstractions (>= 10.0.7)
- Microsoft.Extensions.Hosting.Abstractions (>= 10.0.7)
- Microsoft.Extensions.Http (>= 10.0.7)
- Microsoft.Extensions.Logging (>= 10.0.7)
- Microsoft.Extensions.Logging.Abstractions (>= 10.0.7)
- Microsoft.Extensions.ObjectPool (>= 10.0.7)
- Microsoft.Extensions.Options (>= 10.0.7)
- Microsoft.Extensions.Options.ConfigurationExtensions (>= 10.0.7)
- Microsoft.Extensions.Options.DataAnnotations (>= 10.0.7)
- OpenTelemetry (>= 1.15.3)
- OpenTelemetry.Api (>= 1.15.3)
- OpenTelemetry.Exporter.Console (>= 1.15.3)
- OpenTelemetry.Exporter.OpenTelemetryProtocol (>= 1.15.3)
- OpenTelemetry.Exporter.Prometheus.AspNetCore (>= 1.13.0-beta.1)
- OpenTelemetry.Extensions.Hosting (>= 1.15.3)
- OpenTelemetry.Instrumentation.AspNetCore (>= 1.15.1)
- OpenTelemetry.Instrumentation.Http (>= 1.15.0)
- OpenTelemetry.Instrumentation.Process (>= 1.12.0-beta.1)
- OpenTelemetry.Instrumentation.Runtime (>= 1.15.0)
- System.Threading.RateLimiting (>= 10.0.7)
NuGet packages
This package is not used by any NuGet packages.
GitHub repositories
This package is not used by any popular GitHub repositories.
| Version | Downloads | Last Updated |
|---|---|---|
| 3.0.0-alpha.216 | 67 | 6/30/2026 |
| 3.0.0-alpha.215 | 62 | 6/23/2026 |
| 3.0.0-alpha.214 | 59 | 6/23/2026 |