Extending and Modifying the Unity Application Block

Retired Content

This content is outdated and is no longer being maintained. It is provided as a courtesy for individuals who are still using these technologies. This page may contain URLs that were valid when originally published, but now link to sites or pages that no longer exist.

The latest Enterprise Library information can be found at the Enterprise Library site.

If required, you can extend and modify the Unity Application Block to better suit your own requirements. You can create custom lifetime managers that control how and when the container will dispose instance of objects. You can also create custom container extensions to change the behavior of the container, the instance generation, and the dependency injection features. Finally, you can modify the application block by making changes to its source code. For more details, see the following topics: