August 2017
Intermediate to advanced
330 pages
7h 26m
English
ASP.NET Core is totally modular, that is, you can add components if you really need them. With this approach, web apps become lightweight in terms of deployment and performance.
The main objective of the Configure method of the Startup.cs class is to configure the HTTP request pipeline. In the following code example of Startup.cs, you can see that IApplicationBuilder uses an extension method to configure the pipeline.
The UseMvc extension method adds the routing middleware to the request pipeline, and configures MVC as the default handler, as follows:
app.UseMvc();
We have created a simple web API, and for that, we are using MVC. You might wonder why MVC when we are working with web APIs? The reason for this is that ...
Read now
Unlock full access