ASP.NET Core is a free and open-source web framework, and the next generation of ASP.NET, developed by Microsoft and the community. It is a modular framework that runs on both the full .NET Framework, on Windows, and the cross-platform .NET Core.
mainmethod creates a server or web host and runs this application on that server.
StartUp.csclass that is being called by the Main method of console application.
StartUp.csclass is a start-up class that is being invoked when the application runs the first time.
Configure& one constructor.
ConfigureService– You can use this method to configure services. i.e. ASP.NET Core’s default Dependency Injection.
Configure– You can use this method to register Middleware components in your application request pipeline. i.e. Cookie Based Authentication, Token Based Authentication, Logging, ExceptionHandling, RouteHandling etc.
HTTP Modulesto be a part of its request pipeline & it becomes possible due to the concept of Middleware.
Middleware Componentsshould be registered in Configure Method.
Middleware Componentwill use extension methods. i.e.
Map. These may be anonymous methods also. (Extension Method of
OWINis a Middleware for ASP.NET. A replacement of HTTP Modules.