I've made an authorize filter (by inheriting the new IAsyncAuthorizationFilter), should I also inherit IFilterMetadata, and why/why not?
Thank you.
I've made an authorize filter (by inheriting the new IAsyncAuthorizationFilter), should I also inherit IFilterMetadata, and why/why not?
Thank you.
Copyright © 2021 Jogjafile Inc.
no
IAsyncAuthorizationFilteralready inheritsIFilterMetadataas MSDN indicates
IFilterMetadatais a "marker" interface to indicate filter types to MVC. For an example have a look at the source of FilterCollection.