Understanding Middleware in ASP.NET Core
ASP.NET Core is built on a modular pipeline of middleware components that handle requests and responses. These components let you add custom logic before or after processing an HTTP request. The .NET Core framework includes built-in middleware like: UseDeveloperExceptionPage UseHttpsRedirection UseCors But what if you need custom logic? In this article, we’ll show you how to create custom middleware in an ASP.NET Core API to simplify code, reduce duplication, and keep your app modular and maintainable. Read the full article at https://www.softacom.com/blog/understanding-middleware-in-asp-net-core-logging-correlation-ids-and-best-practices/

ASP.NET Core is built on a modular pipeline of middleware components that handle requests and responses. These components let you add custom logic before or after processing an HTTP request.
The .NET Core framework includes built-in middleware like:
UseDeveloperExceptionPage
UseHttpsRedirection
UseCors
But what if you need custom logic?
In this article, we’ll show you how to create custom middleware in an ASP.NET Core API to simplify code, reduce duplication, and keep your app modular and maintainable. Read the full article at https://www.softacom.com/blog/understanding-middleware-in-asp-net-core-logging-correlation-ids-and-best-practices/