BrandGhost
Intercept ANY Minimal API Response in ASP NET Core

Intercept ANY Minimal API Response in ASP NET Core

Is middleware the answer to this? You want the ability to intercept any response that your ASP NET server is about to send back to the client... Maybe you want to package up every response object in a nice little envelope for more consistent API consumption? Or what about our friend: IEndpointFilter?! Let's check out how IEndpointFilter can help us accomplish this goal of packaging up every API response we have coming back from our ASP NET Core service!
An error has occurred. This application may no longer respond until reloaded. Reload