Unity lifetime management for IDisposable, part 1

added by Thorarin
2/17/2013 4:23:18 PM

0 Kicks, 112 Views

This article is about the Unity IoC container and how to deal with objects that should be disposed of when no longer used. The first part of the article explains the problem must be solved, after which a possible solution is created in the form of two new lifetime managers. The third part of the article highlights caveats of this approach and provides a few alternative solutions to allow the reader to decide what best suits their needs.


0 comments