Skip to content
This repository has been archived by the owner on Mar 2, 2023. It is now read-only.

Add custom filter provider #8

Open
mika76 opened this issue Jan 22, 2018 · 1 comment
Open

Add custom filter provider #8

mika76 opened this issue Jan 22, 2018 · 1 comment

Comments

@mika76
Copy link

mika76 commented Jan 22, 2018

This is great for controllers but does not work for custom filters and if you add a dependency in your custom filter (property injection) it never get's resolved.

The only way I figured out how to do this was from https://michael-mckenna.com/dependency-injection-for-asp-net-web-api-action-filters-in-3-easy-steps/ where he creates a custom UnityFilterProvider. This is so benificial I'm not sure why it's not in this package...

@ENikS
Copy link
Contributor

ENikS commented Jan 22, 2018

I would be happy to add it if someone creates a pull request. Make sure you add some testing as well.

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

No branches or pull requests

2 participants