MagicCSharp.AspNetCore
1.0.0
See the version list below for details.
dotnet add package MagicCSharp.AspNetCore --version 1.0.0
NuGet\Install-Package MagicCSharp.AspNetCore -Version 1.0.0
<PackageReference Include="MagicCSharp.AspNetCore" Version="1.0.0" />
<PackageVersion Include="MagicCSharp.AspNetCore" Version="1.0.0" />
<PackageReference Include="MagicCSharp.AspNetCore" />
paket add MagicCSharp.AspNetCore --version 1.0.0
#r "nuget: MagicCSharp.AspNetCore, 1.0.0"
#:package MagicCSharp.AspNetCore@1.0.0
#addin nuget:?package=MagicCSharp.AspNetCore&version=1.0.0
#tool nuget:?package=MagicCSharp.AspNetCore&version=1.0.0
MagicCSharp.AspNetCore
ASP.NET Core integration for MagicCSharp. Currently one thing: request ID middleware.
Separate from the core package so a console app, a worker or a message consumer using IMagicUseCase does not
take a dependency on ASP.NET Core to get it.
Request IDs
app.UseRequestId();
Accepts an X-Request-ID header from the caller and generates one when there isn't one, puts it on the
response, and makes it available through IRequestIdHandler for the life of the request — including across
await, which is the part a plain field cannot do.
AsyncEventDispatcher sets a request ID of its own per event, derived from the event ID, and a child ID per
handler, so a log line from three handlers deep still traces back to the request that started it.
Note on the framework reference
This package uses <FrameworkReference Include="Microsoft.AspNetCore.App" /> rather than the
Microsoft.AspNetCore.Http.Abstractions NuGet package. That package's last release is 2.2.0, from ASP.NET Core
2.2; referencing the shared framework gets the current types and adds nothing to the build output.
| Product | Versions Compatible and additional computed target framework versions. |
|---|---|
| .NET | net9.0 is compatible. net9.0-android was computed. net9.0-browser was computed. net9.0-ios was computed. net9.0-maccatalyst was computed. net9.0-macos was computed. net9.0-tvos was computed. net9.0-windows was computed. net10.0 was computed. 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. |
-
net9.0
- MagicCSharp (>= 1.0.0)
NuGet packages (1)
Showing the top 1 NuGet packages that depend on MagicCSharp.AspNetCore:
| Package | Downloads |
|---|---|
|
MagicCSharp.App
Everything a MagicCSharp web service needs, wired in two calls. Brings in the core, ASP.NET, events and scheduling packages and registers use cases, TimeProvider, Snowflake IDs, request-ID tracking, in-process events, scheduling defaults, problem-details error handling and a startup preflight. Use the individual packages instead when you want to choose each piece. |
GitHub repositories
This package is not used by any popular GitHub repositories.