kanayabhattad / autofac

Automatically exported from code.google.com/p/autofac
Other
0 stars 0 forks source link

Enable WebAPI action filters to be applied based on predicate #439

Closed GoogleCodeExporter closed 8 years ago

GoogleCodeExporter commented 8 years ago
The idea is to enable additional configuration of when a filter applies to a 
controller by allowing use of a lambda predicate during registration.

builder....AsWebApiActionFilter(
  methodInfo => methodInfo.DeclaringType.Namespace.Contains(".Foo") &&
  methodInfo.GetAttribute<BarAttribute>() != null)

Code/discussion here: 
https://groups.google.com/forum/?fromgroups#!msg/autofac/S2ia55LBqXo/ZnPNvb3UVyM
J

Original issue reported on code.google.com by travis.illig on 28 May 2013 at 6:38

GoogleCodeExporter commented 8 years ago
Moved issue to GitHub: https://github.com/autofac/Autofac/issues/439

Subsequent issue management will be held there; closing the issue on Google 
Code as "WontFix" because we will handle issue resolution on GitHub.

Original comment by travis.illig on 11 Feb 2014 at 12:04