d2b311a1f9
Method | Mean | Error | StdDev | Median | ---------------- |----------:|----------:|-----------:|----------:| IUnityContainer | 70.14 ns | 2.644 ns | 3.2472 ns | 69.36 ns | Container | 69.50 ns | 1.439 ns | 1.8711 ns | 69.21 ns | Unregistered | 92.20 ns | 1.474 ns | 1.1504 ns | 92.00 ns | Transient | 99.68 ns | 1.016 ns | 0.7936 ns | 99.90 ns | Mapping | 193.21 ns | 4.370 ns | 12.1832 ns | 188.32 ns | Array | 776.40 ns | 14.911 ns | 12.4516 ns | 776.54 ns | Enumerable | 904.25 ns | 17.715 ns | 16.5706 ns | 897.31 ns | |
||
---|---|---|
.github/ISSUE_TEMPLATE | ||
src | ||
tests | ||
.gitignore | ||
LICENSE | ||
README.md | ||
appveyor.yml | ||
codecov.yml | ||
package.props | ||
package.sln |
README.md
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