The Unity Application Block (Unity) is a lightweight extensible dependency injection container with support for constructor, property, and method call injection.
Unity addresses the issues faced by developers engaged in component-based software engineering. Modern business applications consist of custom business objects and components that perform specific or generic tasks within the application, in addition to components that individually address cross cutting concerns such as logging, authentication, authorization, caching, and exception handling.
The key to successfully building such applications is to achieve a decoupled or very loosely coupled design. Loosely coupled applications are more flexible and easier to maintain. They are also easier to test during development. You can mock up shims (lightweight mock implementations) of objects that have strong concrete dependencies; such as database connections, network connections, ERP connections, and rich user interface components.
Dependency injection is a prime technique for building loosely coupled applications. It provides ways to handle the dependencies between objects. For example, an object that processes customer information may depend on other objects that access the data store, validate the information, and check that the user is authorized to perform updates. Dependency injection techniques can ensure that the customer class correctly instantiates and populates all of these objects, especially where the dependencies may be abstract.
Unity 3 - Final ReleaseUnity3Unity 3.0 for .NET4.5 Preview is available nowUnity 3.0 for .NET 4.5 and WinRT - PreviewUnity 2.1 For Desktop and Silverlight - May 2011 releasedDownload it from here!
or via NuGetWebcast Demos
The demos from our Unity webcasts are available for download from the Webcast demos
Additional samples using Unity are available from the Code samples
Got questions, bugs or suggestions for the new CodePlex site? Report them here