Latest Posts

How to Register Open Generics in .Net Core DI

In this article, we will discuss how to register open generics in .Net Core Di.

How to add Pre and Post Processing Logic in ASP.NET Core MVC or WebApi

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..

How to add Exception Filter in ASP.NET Core Globally

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..

All about ConfigureServices and Configure Methods in Dotnet core
ASP.Net Core application starts its execution with the program.cs file where we have a Main Method and this method is the starting point of the application.
Generally whenever we create a new ASP.NET Core Web Application project we have two files named Program.cs and Startup.cs files. Program.cs file contains the..