Three a day keeps the stagnation away!
ASP.NET Core 6 will enable turning any methods into a Controller action

ASP.NET Core 6 will enable turning any methods into a Controller action

MVC Controllers have this magic power baked inside of them to allow dispatching HTTP requests to an arbitrarily shaped method on a controller (called actions). As part of the work to make this more accessible, we want to expose a zero dependency building block from lower in the stack that enables the same thing with arbitrary methods and delegates. This lets library authors build convenient and complex request handling logic without having to take big dependencies on controllers or mvc.

Read more: https://github.com/dotnet/aspnetcore/issues/31181

Leave a Reply

Your email address will not be published. Required fields are marked *