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

Popular posts from this blog

Types of Architects

Basic measurements

Search html table contents based on its td using Jquery