OverrideActionFiltersAttribute et al should derive from FilterAttribute, not just Attribute. Otherwise, they can't actually be applied as filter attributes in MVC. (The MVC and Web API designs are different here.)
The workaround is not to use our attributes and create your own that correctly inherit from FilterAttribute. For example:
class OverrideActionFilters2Attribute : FilterAttribute, IOverrideFilter
{
public Type FiltersToOverride
{
get
{
return typeof(IActionFilter);
}
}
}
The workaround is not to use our attributes and create your own that correctly inherit from FilterAttribute. For example:
class OverrideActionFilters2Attribute : FilterAttribute, IOverrideFilter
{
public Type FiltersToOverride
{
get
{
return typeof(IActionFilter);
}
}
}