Skip to content
This repository was archived by the owner on Dec 14, 2018. It is now read-only.

Adding IFilterFactory #345

Closed
wants to merge 1 commit into from
Closed

Adding IFilterFactory #345

wants to merge 1 commit into from

Conversation

rynowak
Copy link
Member

@rynowak rynowak commented Apr 29, 2014

This is a generalized factory/provider for filters - TypeFilterAttribute
and ServiceFilterAttribute are now implemented in terms of this interface.

This is a generalized factory/provider for filters - TypeFilterAttribute
and ServiceFilterAttribute are now implemented in terms of this interface.
@Eilon
Copy link
Member

Eilon commented Apr 30, 2014

Looks :shipit: to me, but awaiting @yishaigalatzer.


namespace Microsoft.AspNet.Mvc
{
public interface IFilterFactory : IFilter
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I believe filter factory needs order, otherwise you can't apply it globally and get it ordered against other filters

Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

If you need order you can just also implement IOrderedFilter. Our two implementations have both interfaces.

Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

As discussed, will open a follow up by for global filters, will include details about the need to include ordering on IFilterFactory when that's implemented.

Edit: #349 filed

@lodejard
Copy link
Contributor

:shipit: very nice

@yishaigalatzer
Copy link
Contributor

:shipit:

@rynowak rynowak closed this Apr 30, 2014
@rynowak rynowak deleted the IFilterFactory branch April 30, 2014 20:22
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants