Skip to content

Latest commit

 

History

History
35 lines (24 loc) · 2.46 KB

File metadata and controls

35 lines (24 loc) · 2.46 KB

Note This repository multi-targets netstandard2.1, net5.0, net6.0, net7.0, net8.0 and net9.0.

NuGet Version Nuget Downloads

Old version

NuGet Version Nuget Downloads


The important thing about this repository is to offer the possibility to manage and organize your result/response from infrastructure to user/controller, as the principal repository around which are built all extensions is RzR.ResultMessage.

In case you wish to use it in your project, u can install the package from nuget.org or specify what version you want:

Install-Package RzR.ResultMessage.Web -Version x.x.x.x

Highlights (v2.x)

  • Multi-target: netstandard2.1 / net5.0 / net6.0 / net7.0 / net8.0 / net9.0 from a single package.
  • Pluggable IResultStatusCodeMapper — centralize status-code resolution, swap globally via AddWebResultMessageMapper(...).
  • Pluggable IProblemDetailsResultFactory — control ProblemDetails type / title / detail / instance / extensions in one place, swap via AddProblemDetailsResultFactory(...).
  • MVC exception filter (AddWebResultExceptionFilter()) + generalized middleware (UseResultExceptionMiddleware()) — auto-translate unhandled exceptions (including WebResultException) to ProblemDetails, no per-action try/catch.
  • Minimal-API adapters (net6.0+): IResult.ToHttpResult(...) and ResultMessageHttpResults.From(...) — identical wire format as MVC.
  • Automatic correlation: traceId emitted from HttpContext.TraceIdentifier unless explicitly overridden by the caller.

Content

  1. USING
  2. MIGRATION v1.x → v2.x
  3. CHANGELOG
  4. BRANCH-GUIDE