Raycynix.Extensions.Exceptions.AspNetCore
2.2.0
dotnet add package Raycynix.Extensions.Exceptions.AspNetCore --version 2.2.0
NuGet\Install-Package Raycynix.Extensions.Exceptions.AspNetCore -Version 2.2.0
<PackageReference Include="Raycynix.Extensions.Exceptions.AspNetCore" Version="2.2.0" />
<PackageVersion Include="Raycynix.Extensions.Exceptions.AspNetCore" Version="2.2.0" />
<PackageReference Include="Raycynix.Extensions.Exceptions.AspNetCore" />
paket add Raycynix.Extensions.Exceptions.AspNetCore --version 2.2.0
#r "nuget: Raycynix.Extensions.Exceptions.AspNetCore, 2.2.0"
#:package Raycynix.Extensions.Exceptions.AspNetCore@2.2.0
#addin nuget:?package=Raycynix.Extensions.Exceptions.AspNetCore&version=2.2.0
#tool nuget:?package=Raycynix.Extensions.Exceptions.AspNetCore&version=2.2.0
Raycynix.Extensions.Exceptions.AspNetCore
Raycynix.Extensions.Exceptions.AspNetCore adds ASP.NET Core middleware integration for Raycynix exceptions.
What it contains
UseRaycynixExceptions(this IApplicationBuilder app)RaycynixExceptionMiddleware- optional Microsoft
ILogger<T>diagnostics for handled request failures
Usage
var builder = WebApplication.CreateBuilder(args);
builder.Services.AddRaycynixExceptions();
var app = builder.Build();
app.UseRaycynixExceptions();
app.Run();
Mapped exceptions are written as structured JSON responses. For example, a mapped validation exception produces an HTTP response body shaped by the core exception package and the ASP.NET Core middleware.
This package depends on Raycynix.Extensions.Exceptions for the core exception mapping and retry services.
Logging
The middleware uses optional Microsoft ILogger<T> diagnostics when logging is registered in the application. No Raycynix logging provider is required.
Diagnostics include exception category, error code, trace identifiers, method, path, endpoint, whether a query string was present, and masked secure details. Raw query string values are not logged.
| 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
- Raycynix.Extensions.Exceptions (>= 2.2.0)
NuGet packages
This package is not used by any NuGet packages.
GitHub repositories
This package is not used by any popular GitHub repositories.
Starts unified versioning for Raycynix packages from this release and uses optional Microsoft.Extensions.Logging diagnostics in the exception middleware.