When reading this article fun with HTTP headers in ASP. net mvc action filters, I mentioned a project ASP. NET MVC action filters created by Roni schuetz on codeplex. We plan to release the first version in May 10. Action filter contained in the Project Plan:
- Action filter for creating Easy Rest API with JSON and XML
- Action filter for logging scenarios
- Action filter for Microsoft Health Monitoring
- Action filter for client caching
- Action filter for client Compression
- Action filter for server Caching
- Action filter for controller execution time measurement
Brief Introduction to action filter: Action filter acts as an attribute that can be applied to the Controller action (or the entire Controller) to change the action executed by the action. ASP. net mvc Framework includes several action filters:
- Outputcache-caches the output of controller actions within the specified time.
- Handleerror-handling of controller action errors.
- Authorize-Restrict access permissions through specified users or roles.
You can also create your own action filter. For example, to implement a custom verification system, you may need to create a custom action filter, you can also create a custom action filter to change the view data returned by the Controller action.
For more information about action filter, see ASP. net mvc Framework Action filters ).