What is middleware in ASP.NET Core, Use of middleware with explanation
Loading
What is middleware in ASP.NET Core, Use of middleware with explanation
Know the answer? Post it — somebody with the same question will find it here.
Sign in to answer this question
It is the same account you read, post and publish with — and you will come straight back to this page.
Jignesh KumarPosted Jan 12, 2024, 9:09 AM
Hello Anandu G Nath,
I'd like you to please refer to these threads that will help you to understand.
https://www.c-sharpcorner.com/article/learn-about-middleware-in-asp-net-core/
https://www.c-sharpcorner.com/article/overview-of-middleware-in-asp-net-core/
Alpesh ManiyaPosted Jan 12, 2024, 12:22 PM
The middleware in ASP.NET Core is like a superhero referee between your web application and the internet. It stands in the middle, handling requests and responses. Each middleware does a specific job, such as logging, authentication, or modifying the request. They work together in a pipeline, making sure everything runs smoothly in your web world. It's like having tiny, specialized guardians ensuring your web app stays secure, fast, and well-behaved.
Rajanikant HawaldarPosted Jan 12, 2024, 8:11 AM
https://www.c-sharpcorner.com/article/overview-of-middleware-in-asp-net-core/
Satyaprakash SamantarayPosted Jan 12, 2024, 7:50 AM
Middleware is a piece of software that can handle an HTTP request or response. For example we may have a middleware component that authenticates a employee details, another piece of middleware to handle exceptions, and another middleware to serve static files such as JavaScript files, CSS files, Images etc.
In middleware, we setup the request processing pipeline in .NET Core. It defines how a request is processed. The request pipeline is configured as part of the application startup by the Configure() method in Startup.cs file.
For more details visit >> https://shorturl.at/fgvG8