Unity is a light weight container used for dependency injection which supports interface, constructor, property and method level injections.
We have the following advantages of using Unity framework
- Supports object creation
- Helps to specify dependecies at run time or in configuration
- It has service location capability which helps to cache the container
We can use Unity in the following scenarios
- Objects or Classes have dependencies with other objects or classes
- Dependencies are very complex
- Manage lifetime of object instances
- Configure dependencies at run time
- Cache or persists dependencies
We can download Unity Application block from the following url http://www.microsoft.com/en-us/download/details.aspx?id=19372.
Later in my blog posts I will walk through the implementation of Unity Framework with sample code snippets
No comments:
Post a Comment