Skip to content

Instantly share code, notes, and snippets.

@tugberkugurlu
Created April 14, 2012 08:21
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save tugberkugurlu/2382862 to your computer and use it in GitHub Desktop.
Save tugberkugurlu/2382862 to your computer and use it in GitHub Desktop.
public class CustomFilterProvider : IFilterProvider {
public IEnumerable<Filter> GetFilters(ControllerContext controllerContext, ActionDescriptor actionDescriptor) {
yield return new Filter(
new SecondaryLoggingFilterAttribute(), FilterScope.Controller, null
);
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment