In ASP NET Core what is use of configure method of startup class?
In ASP.NET core configure method define how application will respond to each of HTTP request. And we can configure the request pipeline by configuring the middleware. And it will accepts IApplicationBuilder as a parameter and also it has optional parameters that are given below:-
(1)IHostingEnvironment
(2)ILoggerFactory
And by using this method we can configure buildt-in middleware just like routing, autentication, session etc. as well as third-party middleware. | |