Please enable JavaScript.
Coggle requires JavaScript to display documents.
ASP.NET Core Middleware - Coggle Diagram
ASP.NET Core Middleware
ASP.NET Core middleware components are modular, reusable components that form the building blocks of the request processing pipeline in an ASP.NET Core application
Middleware components are responsible for handling specific tasks during the processing of incoming HTTP requests and outgoing responses
They enable you to add various functionalities to your application, such as authentication, routing, logging, compression, and more, in a highly modular and customizable manner.
Middleware Example
-
-
-
(UseDeveloperExceptionPage) that is going to execute when there is an unhandled exception in the development environment.
(UseExceptionHandler) that is used to catch exceptions, log them, and re-execute the request in an alternate pipeline.
(UseStaticFiles) that is used to handle static files such as Images, Javascript. or CSS files, etc.
-
-
-
The Middleware Component may also decide not to call the Next Middleware Component in the Request Processing Pipeline. This concept is called Short-Circuiting the Request Processing Pipeline.
-
-
-
-