Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

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

Closed
tillig opened this issue Sep 4, 2015 · 0 comments · Fixed by #43
Closed

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

tillig opened this issue Sep 4, 2015 · 0 comments · Fixed by #43

Comments

@tillig
Copy link
Member

tillig commented Sep 4, 2015

From @alexmg on January 22, 2014 14:25

From travis.illig on May 29, 2013 04:38:55

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() != null)

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

Original issue: http://code.google.com/p/autofac/issues/detail?id=439

Copied from original issue: autofac/Autofac#439

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging a pull request may close this issue.

1 participant