Share via


Microsoft.Practices.Unity Namespace

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 Unity Application Block information can be found at the Unity Application Block site.

Classes

  Class Description
Ee650325.pubclass(en-us,PandP.10).gif ArrayResolutionStrategy
This strategy implements the logic that will call container.ResolveAll when an array parameter is detected.
Ee650325.pubclass(en-us,PandP.10).gif ContainerControlledLifetimeManager
A LifetimeManager that holds onto the instance given to it. When the ContainerControlledLifetimeManager is disposed, the instance is disposed with it.
Ee650325.pubclass(en-us,PandP.10).gif DependencyAttribute
This attribute is used to mark properties and parameters as targets for injection.
Ee650325.pubclass(en-us,PandP.10).gif 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.
Ee650325.pubclass(en-us,PandP.10).gif ExtensionContext
The ExtensionContext class provides the means for extension objects to manipulate the internal state of the UnityContainer.
Ee650325.pubclass(en-us,PandP.10).gif ExternallyControlledLifetimeManager
A LifetimeManager that holds a weak reference to its managed instance.
Ee650325.pubclass(en-us,PandP.10).gif GenericParameter
A InjectionParameterValue that lets you specify that an instance of a generic type parameter should be resolved.
Ee650325.pubclass(en-us,PandP.10).gif GenericResolvedArrayParameter
A InjectionParameterValue that lets you specify that an array containing the registered instances of a generic type parameter should be resolved.
Ee650325.pubclass(en-us,PandP.10).gif InjectedMembers
A Unity container extension that allows you to configure which constructors, properties, and methods get injected via an API rather than through attributes.
Ee650325.pubclass(en-us,PandP.10).gif InjectionConstructor
A class that holds the collection of information for a constructor, so that the container can be configured to call this constructor.
Ee650325.pubclass(en-us,PandP.10).gif InjectionConstructorAttribute
This attribute is used to indicate which constructor to choose when the container attempts to build a type.
Ee650325.pubclass(en-us,PandP.10).gif InjectionMember
Base class for objects that can be used to configure what class members get injected by the container.
Ee650325.pubclass(en-us,PandP.10).gif InjectionMethod
An InjectionMember that configures the container to call a method as part of buildup.
Ee650325.pubclass(en-us,PandP.10).gif InjectionMethodAttribute
This attribute is used to mark methods that should be called when the container is building an object.
Ee650325.pubclass(en-us,PandP.10).gif InjectionParameter
A class that holds on to the given value and provides the required IDependencyResolverPolicy when the container is configured.
Ee650325.pubclass(en-us,PandP.10).gif InjectionParameter<TParameter>
A generic version of InjectionParameter that makes it a little easier to specify the type of the parameter.
Ee650325.pubclass(en-us,PandP.10).gif InjectionParameterValue
Base type for objects that are used to configure parameters for constructor or method injection, or for getting the value to be injected into a property.
Ee650325.pubclass(en-us,PandP.10).gif InjectionProperty
This class stores information about which properties to inject, and will configure the container accordingly.
Ee650325.pubclass(en-us,PandP.10).gif LifetimeManager
Base class for Lifetime managers - classes that control how and when instances are created by the Unity container.
Ee650325.pubclass(en-us,PandP.10).gif LifetimeManagerFactory
An implementation of ILifetimeFactoryPolicy that creates instances of the type of the given Lifetime Manager by resolving them through the container.
Ee650325.pubclass(en-us,PandP.10).gif NamedEventArgs
An EventArgs class that holds a string Name.
Ee650325.pubclass(en-us,PandP.10).gif PerThreadLifetimeManager
A LifetimeManager that holds the instances given to it, keeping one instance per thread.
Ee650325.pubclass(en-us,PandP.10).gif RegisterEventArgs
Event argument class for the Registering event.
Ee650325.pubclass(en-us,PandP.10).gif RegisterInstanceEventArgs
Event argument class for the RegisteringInstance event.
Ee650325.pubclass(en-us,PandP.10).gif ResolutionFailedException
The exception thrown by the Unity container when an attempt to resolve a dependency fails.
Ee650325.pubclass(en-us,PandP.10).gif ResolvedArrayParameter
A class that stores a type, and generates a resolver object that resolves all the named instances or the type registered in a container.
Ee650325.pubclass(en-us,PandP.10).gif ResolvedArrayParameter<TElement>
A generic version of ResolvedArrayParameter for convenience when creating them by hand.
Ee650325.pubclass(en-us,PandP.10).gif ResolvedArrayWithElementsResolverPolicy
An implementation of IDependencyResolverPolicy that resolves to an array populated with the values that result from resolving other instances of IDependencyResolverPolicy.
Ee650325.pubclass(en-us,PandP.10).gif ResolvedParameter
A class that stores a name and type, and generates a resolver object that resolves the parameter via the container.
Ee650325.pubclass(en-us,PandP.10).gif ResolvedParameter<TParameter>
A generic version of ResolvedParameter for convenience when creating them by hand.
Ee650325.pubclass(en-us,PandP.10).gif SynchronizedLifetimeManager
Base class for Lifetime managers which need to synchronize calls to GetValue().
Ee650325.pubclass(en-us,PandP.10).gif TransientLifetimeManager
An LifetimeManager implementation that does nothing, thus ensuring that instances are created new every time.
Ee650325.pubclass(en-us,PandP.10).gif TypedInjectionValue
A base class for implementing InjectionParameterValue classes that deal in explicit types.
Ee650325.pubclass(en-us,PandP.10).gif UnityContainer
A simple, extensible dependency injection container.
Ee650325.pubclass(en-us,PandP.10).gif UnityContainerBase
A base class for implmenting IUnityContainer that provides reasonable implementations for most of the overloads defined by the interface. The overloads all call down to the non-generic versions of the methods with the most parameters.
Ee650325.pubclass(en-us,PandP.10).gif UnityContainerExtension
Base class for all UnityContainer extension objects.
Ee650325.pubclass(en-us,PandP.10).gif UnityDefaultBehaviorExtension
This extension supplies the default behavior of the UnityContainer API by handling the context events and setting policies.
Ee650325.pubclass(en-us,PandP.10).gif UnityDefaultStrategiesExtension
This extension installs the default strategies and policies into the container to implement the standard behavior of the Unity container.

Interfaces

  Interface Description
Ee650325.pubinterface(en-us,PandP.10).gif IUnityContainer
Interface defining the behavior of the Unity dependency injection container.
Ee650325.pubinterface(en-us,PandP.10).gif IUnityContainerExtensionConfigurator
Base interface for all extension configuration interfaces.