UnityContainer Methods
Include Protected Members
Include Inherited Members
The UnityContainer type exposes the following members.
Methods
Name | Description | |
---|---|---|
AddExtension |
Add an extension object to the container.
|
|
BuildUp |
Run an existing object through the container and perform injection on it.
|
|
Configure |
Get access to a configuration interface exposed by an extension.
|
|
CreateChildContainer |
Create a child container.
|
|
Dispose() |
Dispose this container instance.
|
|
Dispose(Boolean) |
Dispose this container instance.
|
|
Equals | (Inherited from Object.) | |
Finalize |
Allows an object to try to free resources and perform other cleanup operations before it is reclaimed by garbage collection.
(Inherited from Object.) |
|
GetHashCode |
Serves as a hash function for a particular type.
(Inherited from Object.) |
|
GetType |
Gets the Type of the current instance.
(Inherited from Object.) |
|
MemberwiseClone |
Creates a shallow copy of the current Object.
(Inherited from Object.) |
|
RegisterInstance |
RegisterType an instance with the container.
|
|
RegisterType |
RegisterType a type mapping with the container, where the created instances will use the given LifetimeManager.
|
|
RemoveAllExtensions |
Remove all installed extensions from this container.
|
|
Resolve |
Get an instance of the requested type with the given name from the container.
|
|
ResolveAll |
Return instances of all registered types requested.
|
|
Teardown |
Run an existing object through the container, and clean it up.
|
|
ToString |
Returns a string that represents the current object.
(Inherited from Object.) |
Extension Methods
Name | Description | |
---|---|---|
AddNewExtension<TExtension> |
Creates a new extension object and adds it to the container.
(Defined by UnityContainerExtensions.) |
|
BuildUp(Type, Object, array<ResolverOverride[]) | Overloaded.
Run an existing object through the container and perform injection on it.
(Defined by UnityContainerExtensions.) |
|
BuildUp<T>(T, array<ResolverOverride[]) | Overloaded.
Run an existing object through the container and perform injection on it.
(Defined by UnityContainerExtensions.) |
|
BuildUp<T>(T, String, array<ResolverOverride[]) | Overloaded.
Run an existing object through the container and perform injection on it.
(Defined by UnityContainerExtensions.) |
|
Configure<TConfigurator> |
Resolve access to a configuration interface exposed by an extension.
(Defined by UnityContainerExtensions.) |
|
IsRegistered(Type) | Overloaded.
Check if a particular type has been registered with the container with the default name.
(Defined by UnityContainerExtensions.) |
|
IsRegistered(Type, String) | Overloaded.
Check if a particular type/name pair has been registered with the container.
(Defined by UnityContainerExtensions.) |
|
IsRegistered<T>() | Overloaded.
Check if a particular type has been registered with the container with the default name.
(Defined by UnityContainerExtensions.) |
|
IsRegistered<T>(String) | Overloaded.
Check if a particular type/name pair has been registered with the container.
(Defined by UnityContainerExtensions.) |
|
LoadConfiguration() | Overloaded.
Apply configuration from the default section and unnamed container element.
(Defined by UnityContainerExtensions.) |
|
LoadConfiguration(String) | Overloaded.
Apply configuration from the default section (named "unity" pulled out of ConfigurationManager) and the named container.
(Defined by UnityContainerExtensions.) |
|
LoadConfiguration(UnityConfigurationSection) | Overloaded.
Apply configuration from the default container in the given section.
(Defined by UnityContainerExtensions.) |
|
LoadConfiguration(UnityConfigurationSection, String) | Overloaded.
Apply configuration from the given section and named container into the given container.
(Defined by UnityContainerExtensions.) |
|
RegisterInstance(Type, Object) | Overloaded.
Register an instance with the container.
(Defined by UnityContainerExtensions.) |
|
RegisterInstance(Type, Object, LifetimeManager) | Overloaded.
Register an instance with the container.
(Defined by UnityContainerExtensions.) |
|
RegisterInstance(Type, String, Object) | Overloaded.
Register an instance with the container.
(Defined by UnityContainerExtensions.) |
|
RegisterInstance<TInterface>(TInterface) | Overloaded.
Register an instance with the container.
(Defined by UnityContainerExtensions.) |
|
RegisterInstance<TInterface>(TInterface, LifetimeManager) | Overloaded.
Register an instance with the container.
(Defined by UnityContainerExtensions.) |
|
RegisterInstance<TInterface>(String, TInterface) | Overloaded.
Register an instance with the container.
(Defined by UnityContainerExtensions.) |
|
RegisterInstance<TInterface>(String, TInterface, LifetimeManager) | Overloaded.
Register an instance with the container.
(Defined by UnityContainerExtensions.) |
|
RegisterType(Type, array<InjectionMember[]) | Overloaded.
Register a type with specific members to be injected.
(Defined by UnityContainerExtensions.) |
|
RegisterType(Type, Type, array<InjectionMember[]) | Overloaded.
Register a type mapping with the container.
(Defined by UnityContainerExtensions.) |
|
RegisterType(Type, LifetimeManager, array<InjectionMember[]) | Overloaded.
Register a LifetimeManager for the given type and name with the container. No type mapping is performed for this type.
(Defined by UnityContainerExtensions.) |
|
RegisterType(Type, String, array<InjectionMember[]) | Overloaded.
Register a LifetimeManager for the given type and name with the container. No type mapping is performed for this type.
(Defined by UnityContainerExtensions.) |
|
RegisterType(Type, Type, String, array<InjectionMember[]) | Overloaded.
Register a type mapping with the container.
(Defined by UnityContainerExtensions.) |
|
RegisterType(Type, Type, LifetimeManager, array<InjectionMember[]) | Overloaded.
Register a type mapping with the container, where the created instances will use the given LifetimeManager.
(Defined by UnityContainerExtensions.) |
|
RegisterType(Type, String, LifetimeManager, array<InjectionMember[]) | Overloaded.
Register a LifetimeManager for the given type and name with the container. No type mapping is performed for this type.
(Defined by UnityContainerExtensions.) |
|
RegisterType<T>(array<InjectionMember[]) | Overloaded.
Register a type with specific members to be injected.
(Defined by UnityContainerExtensions.) |
|
RegisterType<T>(String, array<InjectionMember[]) | Overloaded.
Register a LifetimeManager for the given type with the container. No type mapping is performed for this type.
(Defined by UnityContainerExtensions.) |
|
RegisterType<T>(LifetimeManager, array<InjectionMember[]) | Overloaded.
Register a LifetimeManager for the given type with the container. No type mapping is performed for this type.
(Defined by UnityContainerExtensions.) |
|
RegisterType<T>(String, LifetimeManager, array<InjectionMember[]) | Overloaded.
Register a LifetimeManager for the given type and name with the container. No type mapping is performed for this type.
(Defined by UnityContainerExtensions.) |
|
RegisterType<TFrom, TTo>(array<InjectionMember[]) | Overloaded.
Register a type mapping with the container.
(Defined by UnityContainerExtensions.) |
|
RegisterType<TFrom, TTo>(String, array<InjectionMember[]) | Overloaded.
Register a type mapping with the container.
(Defined by UnityContainerExtensions.) |
|
RegisterType<TFrom, TTo>(LifetimeManager, array<InjectionMember[]) | Overloaded.
Register a type mapping with the container, where the created instances will use the given LifetimeManager.
(Defined by UnityContainerExtensions.) |
|
RegisterType<TFrom, TTo>(String, LifetimeManager, array<InjectionMember[]) | Overloaded.
Register a type mapping with the container, where the created instances will use the given LifetimeManager.
(Defined by UnityContainerExtensions.) |
|
RegisterTypes(RegistrationConvention, Boolean) | Overloaded.
Registers the types according to the convention.
(Defined by UnityContainerRegistrationByConventionExtensions.) |
|
RegisterTypes(IEnumerable<Type>, Func<Type, IEnumerable<Type>>, Func<Type, String>, Func<Type, LifetimeManager>, Func<Type, IEnumerable<InjectionMember>>, Boolean) | Overloaded.
Registers the supplied types by using the specified rules for name, lifetime manager, injection members, and registration types.
(Defined by UnityContainerRegistrationByConventionExtensions.) |
|
Resolve(Type, array<ResolverOverride[]) | Overloaded.
Resolve an instance of the default requested type from the container.
(Defined by UnityContainerExtensions.) |
|
Resolve<T>(array<ResolverOverride[]) | Overloaded.
Resolve an instance of the default requested type from the container.
(Defined by UnityContainerExtensions.) |
|
Resolve<T>(String, array<ResolverOverride[]) | Overloaded.
Resolve an instance of the requested type with the given name from the container.
(Defined by UnityContainerExtensions.) |
|
ResolveAll<T> |
Return instances of all registered types requested.
(Defined by UnityContainerExtensions.) |