Friday, May 21, 2010

Inject Some Life into Your Applications—Getting to Know the Unity Application Block

Unity is just a container that stores registrations and mappings between types and can instantiate the appropriate concrete types on demand. Or, to be more precise, it is a lightweight, extensible dependency injection container with support for nested containers and facilities for constructor, property, and method call injection. Unity is available as a stand-alone download and is also included with Enterprise Library 4.0. You can use Unity with Enterprise Library to create both Enterprise Library objects and your own custom business objects, or you can use it without installing Enterprise Library.


Above was the small introduction to the UNITY DI Library provided in the article i went through. Hope you'll make use of this piece of information for dependency injection.


Happy Coding!