Month: February 2019

Dependency injection in WCF service using AutoFac

Dependency injection is one form of the broader technique of inversion of control (SOLID - Dependency inversion principles). In software, There should be less coupling between component and cohesion should be high. High level module should not depend on low level modules rather should depend on Abstraction. Many times we need to inject dependencies in … Continue reading Dependency injection in WCF service using AutoFac

IDisposable interface

Many times, it happens that we need to implement IDisposable interface in our class. E.g. we have created a class and this class has some managed resources as well as some unmanaged resources. Now, in our whole project, all other classes / services started to consume this class. After consuming of a class, its responsibility … Continue reading IDisposable interface