Injectable, Configurable Action Filters

Posted by: K. Scott Allen, on 20 Jan 2011 | View original | Bookmarked: 0 time(s)

One of the advantages to using a custom IFilterProvider is how you gain total control over the instantiation of action filters in ASP.NET MVC 3. When you combine an IoC container with a filter provider and a custom IDependencyResolver (see Brad's posts for details), then all the pieces fall into place. Building on the code from the last post, we can change our filter provider to utilize Ninject for action filter instantiation. public class ConfiguredFilterProvider : IFilterProvider { private...

Category: Data | Other Posts: View all posts by this blogger | Report as irrelevant | View bloggers stats | Views: 640 | Hits: 22

Similar Posts

  • Using T4MVC strongly-typed helpers with Telerik Extensions for ASP.NET MVC more
  • How to use Ninject 2 with ASP.NET MVC more
  • The ASP.NET MVC ActionController The controllerless action, or actionless controller more
  • ViewModel with MVC/Navigation in Silverlight more
  • How to improve the performances of ASP.NET MVC web applications more
  • New class: ASP.NET MVC Boot Camp developer training more
  • ForEach or not ForEach, that is the question more
  • jQuery Delete Link With Downlevel Support more
  • Framework Design Guidelines: Avoiding custom delegates more
  • Handling Formats Based On Url Extension more

News Categories

.NET | Agile | Ajax | Architecture | ASP.NET | BizTalk | C# | Certification | Data | DataGrid | DataSet | Debugger | DotNetNuke | Events | GridView | IIS | Indigo | JavaScript | Mobile | Mono | Patterns and Practices | Performance | Podcast | Refactor | Regex | Security | Sharepoint | Silverlight | Smart Client Applications | Software | SQL | VB.NET | Visual Studio | W3 | WCF | WinFx | WPF | WSE | XAML | XLinq | XML | XSD