I want to get the current method name of my ASP.NET Core controller
ASP.NET Core
I have tried getting the method name through reflection:
[HttpGet]
You can get it by base.ControllerContext.ActionDescriptor.ActionName
base.ControllerContext.ActionDescriptor.ActionName
This works in .NET Core 1.0.