Actionfilterattribute Net Core. This class implements both the iactionfilter and iresultfilter interfaces and inherits from the filter class. Filters in net offer a great way to hook into the mvc action invocation pipeline.
It is defined in microsoft aspnetcore mvc core assembly. To create a custom action filter in asp net core. This class implements both the iactionfilter and iresultfilter interfaces and inherits from the filter class.
Asp net core includes built in attribute based filters that can be subclassed and customized.
To create a custom action filter in asp net core. Starting with a simple netcore web project i created a custom actionfilterattribute as. Actually in asp net core we have a servicefilter to finish the job. There are some filters that are already provided by asp net core like the authorization filter and there are the custom ones that we can create ourselves.