In this article, we will discuss how to register open generics in .Net Core Di.
Every application requires does some kind of Pre and Post-processing logic to sometimes validate or to do custom logic before executing and returning the actual result. ASP.NET Core provides multiple ways to do the same namely Filters, Middlewares, etc...
We can have multiple middlewares, Filters in a typical application to validate or to do custom implementation to every request in the w..
Exception Handling is an important thing for every application and C# language provides different ways to handle the exception. We can handle exception locally in the method as well as globally but it's not efficient to add a try/catch block in every method as logging the error from every catch block of the method is not efficient as it violates code reuse so efficient way is to add global exce..