Unity container is a lightweight dependency injection container. It manages creation and resolution of objects that we registered based on life time that we specified. Here is a list of lifetime managers that exist in Unity.
We will implement logging of actions in controllers and catch all exceptions in application and log them. First, go to the visual studio and create ASP.NET Web API project. Then, using Nuget Package Manager add log4net to this project.
Garbage collection servers an automatic memory manager. It occurs when one of the following conditions is true: – The system has low physical memory. – The memory that is used by allocated objects on the managed heap surpasses an acceptable threshold. This threshold is continuously adjusted as the process runs. – The GC.Collect method is […]