Microsoft | patterns & practices | Developer Network | Enterprise Library | Acceptance Testing Guide | Personal Site
Unity has become a popular DI container with a solid base of users (last time I checked, there were 300K+ cumulative downloads of the Unity container through all channels – MSDN, Codeplex, and NuGet). Unity runs in the heart of Microsoft Exchange and Bing and many other systems. For all of you Unity fans and enthusiasts building Metro style apps for Windows 8 Developer Preview, we have ported the Unity dependency injection container to .NET 4.5 framework.
The Unity 3.0.1026.0 Preview enables Unity to work on .NET 4.5 with both the WinRT and desktop profiles. The major changes include:
Notes/Known Issues:
Note, there are no new features in this preview. All new features (registration by convention, web-specific lifetimes like Per-HttpRequest, etc.) along with further perf optimizations are planned to be done as part of the Enterprise Library v6.0 (codenamed “Reinvented”) project. You are invited to submit and vote on features requests through our Uservoice site.
In the meantime, enjoy the Unity 3.0 preview and please provide feedback on it.
Kudos go to Bob Brumfield for he is the one who’s actually done the bulk of work on this preview release. Also, I’d like to acknowledge David Hill, Chris Tavares and Fernando Simonazzi who helped with the approach, code review, and provided early feedback.
Finally, you can get the Unity 3.0 Preview from Codeplex.
Why can't CommonServiceLocator be used?
Internally, the CommonServiceLocator depends on IServiceProvider which isn't available in WinRT. We just did not create a version of CSL for WinRT at this time. In the future, if there is enough interest we could create a version of the CSL for WinRT.
You bet there is :-)