Different between app.run and app.use in asp.net core
2 Answers
Know the answer? Post it. Somebody with the same question will find it here.
Know the answer? Post it. Somebody with the same question will find it here.
Answer a question in the forums and earn +20 SHARP for every answer.
See unanswered questions
DevSocialUpcoming · 3rd editionAI Agents ConferenceDec 1–3, 2026Live onlineFree to attend5days leftRegister
Rajanikant HawaldarRank #110 · 20.2K reputationPosted Oct 16, 2022, 5:11 AM EDT
app.Run() will end the request, and app.Use() will pass the request to next middleware.
Vishal YelveRank #178 · 13.6K reputationPosted Oct 16, 2022, 9:55 AM EDT
https://www.tutorialspoint.com/what-is-the-difference-between-iapplicationbuilder-use-and-iapplicationbuilder-run-chash-asp-net-core