Quantcast
Channel: Comments on: Control the execution order of your filters in ASP.NET Web API
Browsing latest articles
Browse All 30 View Live

By: velocity too

Great help, thank you! One silly question: why did you name the property “Position” instead of “Order” as it is named in the mirrored System.Web.Mvc.FilterAttribute class? That way, if it ever is moved...

View Article



Image may be NSFW.
Clik here to view.

By: Filip W

I wish I had an answer to this question

View Article

By: Chris Padgett

A great post, Filip. I believe the actionDescriptor.GetFilters() call should select a collection of CustomFilterInfos that are scoped to FilterScope.Action, not FilterScope.Controller. Is that right?...

View Article

Image may be NSFW.
Clik here to view.

By: Filip W

yes that’s right – typo

View Article

By: Richard Lawley

In its current form, this will prevent any global filters from being applied. The FilterProvider must be modified to also include configuration.Filters as well.

View Article


By: JordanM

Brilliant – thank you so much for sharing this code. I would never have had time to investigate this myself this week. Thanks again.

View Article

By: Ibrahim

Nice article but what if I want globally defined filters to be included in the equation as well?

View Article

By: Ibrahim

How do I bring globally defined filters into the equation?

View Article


By: Md.Ibrahim

I implemented your solution exactly but it is not respecting the custom order and executing controller scoped action filter before anyway.

View Article


By: thejmack

I’m curious how to have the filters respect the position/order to include those that are applied to base controllers. E.g. on basecontroller you have an actionfilterA with a position of 1 (or 0), and...

View Article
Browsing latest articles
Browse All 30 View Live




Latest Images