Multiple Implementation of Interface in ASP.net core

This approach utilizes the new feature default interface methods introduced in C# 8.0, so we will need .NET Core 3.x or newer versions to implement this approach. Let’s say we have the following interface: This interface has multiple implementations with two different classes, Visa and Master: The services registered as the following: For the sake…More

How Sessions works internally in ASP.net core

Http requests are stateless, sessions are used to maintain/persist data between http requests, it’s one of many approaches used in asp.net for state management. In this post, I will explain how and where the session data are stored, how the data is secured, managed and retrieved. I will not talk about how to add and…More