Actionfilterattribute Mvc 5. Creating a new custom authentication filter with asp net mvc 5 note. The iactionfilter interface include following methods to implement.
Second by deriving the actionfilterattribute abstract class. You can create a custom action filter in two ways first by implementing the iactionfilter interface and the filterattribute class. Outputcache this action filter caches the output of a controller action for a specified amount of time.
The asp net mvc framework includes several action filters.
Onresultexecuted resultexecutedcontext called by the asp net mvc framework after the action result executes. There are different types of filters available in mvc. I am using asp net mvc 5 and i don t have the kernel bindfilter. That approach is completely hostile to di.
