You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I noticed that Ninject.Web.Mvc has an ActionFilter invoker, to inject dependencies into an ActionFilter. Is it possible to do the same for ActionResults?
The text was updated successfully, but these errors were encountered:
As ActionResults are created in Actions of a controller you have to inject a IKernel(or better IResolutionRoot) into your controller (or better a result factory that is inected to the controller) and let the kernel create the desired action result.
Or do you mean IResultFilter? They are injected too.
I noticed that
Ninject.Web.Mvc
has anActionFilter
invoker, to inject dependencies into anActionFilter
. Is it possible to do the same forActionResults
?The text was updated successfully, but these errors were encountered: