2021年4月1日星期四

How do I get MethodInfo of a controller action with HttpContext? (NET CORE 2.2)

I know that I have to use reflection but I don't know how. I'm trying to know the MethodInfo from a StartUp Middleware. I need the MethodInfo to know if the action that I'm invoking is or is not async.

Thank you for your time.

https://stackoverflow.com/questions/66911734/how-do-i-get-methodinfo-of-a-controller-action-with-httpcontext-net-core-2-2 April 02, 2021 at 05:25AM

没有评论:

发表评论