Welcome to the March 4, 2008 Weekly drop of Unity
This is the latest weekly drop of the Unity Container source code.
Work has continued on the lifetime management features.
The much-reviled SetSingleton method is gone. The SetLifetime method is also gone.
The Register method has been renamed to RegisterType, and overloads have been added that take a lifetime manager instance.
The Get and GetAll methods have been renamed to Resolve and ResolveAll. Get is a keyword in VB.NET, and using it as a method name made the container inconvenient to use from VB.NET.
Where you previously did this:
you should now do:
container.Register<IFoo, Foo>(new ContainerControlledLifetimeManager());