Unity.Mvc3 NuGet Package - Reconcile MVC3, Unity and IDisposable

added by devtrends
3/31/2011 5:46:51 AM

363 Views

Most IDependencyResolver implementations using Unity do not work with IDisposable and using them can lead to memory leaks and connection issues. Unity.Mvc3 is an assembly that includes a fuller implementation of IDependencyResolver that uses a child container per web request to ensure that IDisposable instances are disposed of at the end of each request. All of these complexities are taken care of by the assembly and integration into a project is as simple as adding a single line of code.


0 comments