To understand MVC Action Filters, we have to know how ASP.NET MVC routing works. When a user types an ASP.NET MVC application URL in the browser, it lands at the UrlRoutingModule. The routing module parses the requested URL and then invokes the corresponding controller and action. Finally, the controller renders the appropriate view and the response is sent to the user. Now assume, a developer wants to inject some additional processing logic which could be reused across multiple controllers and actions in the request response life cycle. MVC custom filters allow developers to inject additional processing logic in the request-response life cycle.
Subscribe to:
Post Comments (Atom)
Mocking API Responses in Azure API Management Portal
A mock API imitates a real API call by providing a realistic JSON or XML response to the requester. Mock APIs can be designed on a developer...
-
Azure Service provides SQL relational database-as-a-service with high performance, reliability, and security. Developers can write C# code...
-
Microsoft has introduced some excellent Business Intelligence features in SharePoint 2010. Some are brand new while others have been update...
-
Mono is an open source project led by Novell to create a .NET-compatible set of tools that include, among others, a C# compiler and a Common...
No comments:
Post a Comment