Namespace Unity
Classes
- DependencyAttribute
This attribute is used to mark properties and parameters as targets for injection.
- DependencyResolutionAttribute
Base class for attributes that can be placed on parameters or properties to specify how to resolve the value for that parameter or property.
- InjectionConstructorAttribute
This attribute is used to indicate which constructor to choose when the container attempts to build a type.
- InjectionMethodAttribute
This attribute is used to mark methods that should be called when the container is building an object.
- OptionalDependencyAttribute
An DependencyResolutionAttribute used to mark a dependency as optional - the container will try to resolve it, and return null if the resolution fails rather than throw.
- ResolutionFailedException
The exception thrown by the Unity container when an attempt to resolve a dependency fails.
- UnityContainerAsyncExtensions
Extension class that adds a set of convenience overloads to the IUnityContainerAsync interface.
- UnityContainerExtensions
Extension class that adds a set of convenience overloads to the IUnityContainer interface.
Interfaces
- IContainerRegistration
Information about the types registered in a container.
Types registered with container are stored in registry and exposed to outside world through Registrations enumeration. Each record is represented by an instance of this interface.
- IUnityContainer
Interface defining the behavior of the Unity dependency injection container.
This interface defines a compact API that allows registration of types, instances, and factories, resolution of new objects or initialization of existing instances, scope manipulations, and etc.
- IUnityContainerAsync
Interface defining the behavior of the Unity dependency injection container.
Enums
- ResolutionOption
Options indicating how dependency should be resolved