Dijelite putem


Unity Container

patterns & practices Developer Center

patterns & practices Developer Center

August 2013

Summary

The Unity Container (Unity) is a lightweight, extensible dependency injection container with optional support for instance and type interception.

Active Releases

Retired Releases

Overview

The Unity Container (Unity) is a lightweight, extensible dependency injection container. It facilitates building loosely coupled applications and provides developers with the following advantages:

  • Simplified object creation, especially for hierarchical object structures and dependencies
  • Abstraction of requirements; this allows developers to specify dependencies at run time or in configuration and simplify management of crosscutting concerns
  • Increased flexibility by deferring component configuration to the container
  • Service location capability; this allows clients to store or cache the container
  • Instance and type interception
  • Registration by convention

Community

The Unity Application Block, like many patterns & practices deliverables, is associated with a community site. On this community site, you can post questions, provide feedback, or connect with other users for sharing ideas. Community members can also help Microsoft plan and test future releases of Unity, and download additional content such as extensions and training material. We also accept and encourage community contributions – see the guidelines.

Related Titles

patterns & practices Developer Center