Sign In| Join
Get Help:Ask a Question in our Forums|Report a Bug|More Help Resources
Last post Apr 04, 2012 02:45 PM by apocolpse
Member
10 Points
8 Posts
Apr 04, 2012 06:13 AM|LINK
Is there a way to inject dependencies into Filters (Authorize, Action, Error filters)?
filters
All-Star
87443 Points
9718 Posts
Moderator
MVP
Apr 04, 2012 09:12 AM|LINK
It should be the same as injecting dependencies into MVC ActionFilters:
http://codeclimber.net.nz/archive/2009/02/10/how-to-use-ninject-to-inject-dependencies-into-asp.net-mvc.aspx
Apr 04, 2012 02:45 PM|LINK
Thanks. That makes sense. I did it was AutoFac though :)
apocolpse
Member
10 Points
8 Posts
Inject into filters
Apr 04, 2012 06:13 AM|LINK
Is there a way to inject dependencies into Filters (Authorize, Action, Error filters)?
filters
DarrellNorto...
All-Star
87443 Points
9718 Posts
Moderator
MVP
Re: Inject into filters
Apr 04, 2012 09:12 AM|LINK
It should be the same as injecting dependencies into MVC ActionFilters:
http://codeclimber.net.nz/archive/2009/02/10/how-to-use-ninject-to-inject-dependencies-into-asp.net-mvc.aspx
Darrell Norton's Blog
Please click "Mark as Answer" if this helped you.
apocolpse
Member
10 Points
8 Posts
Re: Inject into filters
Apr 04, 2012 02:45 PM|LINK
Thanks. That makes sense. I did it was AutoFac though :)