Skip to content

I-RzR-I/AggregatedGenericResultMessage-Web

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

44 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

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

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 AggregatedGenericResultMessage.

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 AggregatedGenericResultMessage.Web -Version x.x.x.x

Highlights (v2.x)

  • Multi-target: netstandard2.1 / 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

About

This library is an aggregate of some extensions to use more comfortable `Result lib`. In other words, transform from `Result` to `IActionResult`.

Topics

Resources

License

Stars

Watchers

Forks

Packages

 
 
 

Contributors