You could use Ninject
in order to apply dependency injection to your application. Ninject
will automatically call the Dispose
method of objects implementing the IDisposable
interface. Helpful information how to use Ninject
can be found here
Hope that helps.
the Telerik team