proudmonkey / AutoWrapper

A simple, yet customizable global exception handler and Http response wrapper for ASP.NET Core APIs.
MIT License
677 stars 82 forks source link

How tu use AutoWrapperOptions in .NET enviroment #82

Closed celmarek closed 4 years ago

celmarek commented 4 years ago

Hello, is any example how tu use 👍

app.UseApiResponseAndExceptionWrapper(new AutoWrapperOptions { UseApiProblemDetailsException = true });

in .net enviroment ?

p.s: How to use [AutoWrapperPropertyMap(Prop.)] in .NET ?

proudmonkey commented 4 years ago

I'm not sure what you mean by .NET emvironment, but you can find the documentation about their usage in the README file: https://github.com/proudmonkey/AutoWrapper/blob/master/README.md

You can also find a few links there that shows how to use them:

http://vmsdurano.com/autowrapper-now-supports-problemdetails/ https://vmsdurano.com/asp-net-core-with-autowrapper-customizing-the-default-response-output/

celmarek commented 4 years ago

Thx for fast replay,

I Want to use this future in ASP.NET Web (Net Framework) api not in ASP.NET Core.

proudmonkey commented 4 years ago

Hi,

AutoWrapper does not support the full .NET Framework. However, I've written a package for it for traditional ASP.NET version here: https://github.com/proudmonkey/RESTApiResponseWrapper.Net

Though, keep in mind that I no longer maintain that library.