Within request pipeline in Asp.net core 1.1, the requests travel through middlewares one by one to reach the Mvc. Interestingly, Mvc has another pipeline architecture to entertain the request called Filter pipeline. Just like middlewares, Mvc filters also entertain request one by one and can return the response if a filter decides not to process the request any further (called short circuiting the response). The filter pipeline runs after Mvc selects the action to be executed by processing the routing data.
Asp.net Mvc controllers can have different methods usually called actions or action methods. Asp.net Mvc has introduced the separation of concern with IActionResults. The separation is between stating the intentions and executing the intentions. Stating the intention is to the programmers writing codes in action methods. Execution is usually handled by the built-in IActionResult implementations … Continue reading IActionResult in Asp.net Core MVC VS2017
For single page applications you can easily use Mvc middleware with following method. app.UseMvcWithDefaultRoute(); But for an application that presents more than one pages and navigate between those pages often demands a better management of the routes to those pages. You can use Mvc middleware with following method where you can pass route configurations. app.UseMvc(Action configureRoutes); As it … Continue reading Asp.Net Core 1.1 MVC Routing in VS2017
In my earlier blog post I created a blank project and understood how the basic application structure is loading. I created a new empty project just like my previous blog and now i am interested to build my request pipeline. Request pipelines are built in Startup.cs class, Configure() method. But we need AspNetCore MVC Middleware before … Continue reading Adding MVC to AspNetCore VS2017