Configurable Action Filter Provider

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

In MVC 3 you can implement an IFilterProvider to create and feed action filters to the MVC runtime. Assuming you have the configuration classes in place from the last post, you can create a custom filter provider to add action filters to the MVC pipeline. public class ConfiguredFilterProvider : IFilterProvider { public IEnumerable<Filter> GetFilters( ControllerContext controllerContext, ActionDescriptor actionDescriptor) { var filters = FiltersSettings.Settings.Filters; ...

Advertisement
Free Agile Project Management Tool from Telerik
TeamPulse Community Edition helps your team effectively capture requirements, manage project plans, assign and track work, and most importantly, be continually connected with each other.
Category: ASP.NET | Other Posts: View all posts by this blogger | Report as irrelevant | View bloggers stats | Views: 837 | Hits: 36

Similar Posts

  • Keeping ELMAH's Error Log Size In Check more
  • VS 2010 Code Intellisense Improvements (VS 2010 and .NET 4.0 Series) more
  • How to use Ninject 2 with ASP.NET MVC more
  • WPF Release History : Q2 2009 (version 2009.2.701) more
  • Introducing Versatile DataSources more
  • RELEASED ASP.NET MVC 2 Preview 2 more
  • The ASP.NET MVC ActionController The controllerless action, or actionless controller more
  • Using T4MVC strongly-typed helpers with Telerik Extensions for ASP.NET MVC more
  • Filtering with string parameter that allows free user input more
  • ViewModel with MVC/Navigation in Silverlight 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