app.Use vs app.Run in ASP.NET Core middleware ?
Middleware are executed in the same order in which they are added. The difference is, middleware defined using app.Use may call next middleware component in the pipeline. On the other hand, middlware defined using app.Run will never call subsequent middleware.
No comments:
Post a Comment