Can I use [FromServices] on a method’s parameter, when method is not an action, but Extension of the Controller?
No, you can’t. Extension methods are syntax sugar on static functions, and will not be discovered when asp.net core will search for it
Thanks
C# devs
null reference exceptions