Junior From PDF ASP.NET Core ASP.NET Core

What is middleware in ASP.NET Core?

Middleware is a component in the HTTP request pipeline that can:

  • Handle requests,
  • Pass requests to the next middleware,
  • Or short-circuit the pipeline.

Middleware can:

  • Perform actions before and/or after the next middleware executes.
  • Be used for logging, authentication, error handling, etc.

Middleware executes in the order it's added in Program.cs.

More from ASP.NET Core Tutorial

All questions for this course
Toolliyo Assistant
Ask about tutorials, ebooks, training, pricing, mentor services, and support. I use public site content only—not admin or internal tools.

care@toolliyo.com

Need callback? Share your details