Difference between IApplicationBuilder.Use() and IApplicationBuilder.Run() in Dotnet core?
IApplicationBuilder.Use()
*It is used under configure method of Startup class.
*It is used to add middleware delegate to the application request pipeline.
*It will call the next middleware in the pipeline.
IApplicationBuilder.Run()
*It is used under configure method of Startup class.
*It is used to add middleware delegate to the application request pipeline.
*It will not call the next middleware in the pipeline. System will stop adding middleware after this method.
Comments
Post a Comment