Elegant way of producing HTTP responses in ASP.NET Core outside of MVC controllers

added by DotNetKicks
3/12/2019 12:29:24 PM

1 Kicks, 120 Views

ASP.NET Core 2.1 introduced support for a little (or, should I say, not at all) documented feature called IActionResultExecutor . It allows us to use some of the action results -those that we are used to from MVC controllers - outside of the controller context, so for example from a middleware component.