I've made an authorize filter (by inheriting the new IAsyncAuthorizationFilter
), should I also inherit IFilterMetadata
, and why/why not?
Thank you.
no IAsyncAuthorizationFilter
already inherits IFilterMetadata
public interface IAsyncAuthorizationFilter : Microsoft.AspNetCore.Mvc.Filters.IFilterMetadata
as MSDN indicates IFilterMetadata
is a "marker" interface to indicate filter types to MVC. For an example have a look at the source of FilterCollection.