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.
main
method creates a server or web host and runs this application on that server.StartUp.cs
class that is being called by the Main method of console application.StartUp.cs
class is a start-up class that is being invoked when the application runs the first time.ConfigureServices
& 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.System.Web
and HTTP Modules
to be a part of its request pipeline & it becomes possible due to the concept of Middleware.Request Delegates
or Middleware Components
should be registered in Configure Method.Request Delegates
or Middleware Component
will use extension methods. i.e. Run
, Use
& Map
. These may be anonymous methods also. (Extension Method of IApplicationBuilder
class)OWIN
is a Middleware for ASP.NET. A replacement of HTTP Modules.System.Web
DLL and HTTP Modules
.