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 #439

Closed
alexmg opened this issue Jan 22, 2014 · 1 comment
Closed

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

alexmg opened this issue Jan 22, 2014 · 1 comment

Comments

@alexmg
Copy link
Member

alexmg commented Jan 22, 2014

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

@tillig
Copy link
Member

tillig commented Sep 4, 2015

This issue was moved to autofac/Autofac.WebApi#9

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

No branches or pull requests

2 participants