Microsoft.Practices.Unity Namespace
| Class | Description | |
|---|---|---|
|
ArrayResolutionStrategy |
This strategy implements the logic that will call container.ResolveAll
when an array parameter is detected.
|
|
ChildContainerCreatedEventArgs |
Event argument class for the ChildContainerCreated event.
|
|
CompositeResolverOverride |
A ResolverOverride that composites other
ResolverOverride objects. The GetResolver operation then
returns the resolver from the first child override that
matches the current context and request.
|
|
ContainerControlledLifetimeManager |
A LifetimeManager that holds onto the instance given to it.
When the ContainerControlledLifetimeManager is disposed,
the instance is disposed with it.
|
|
ContainerRegistration |
Class that returns information about the types registered in a container.
|
|
DependencyAttribute |
This attribute is used to mark properties and parameters as targets for injection.
|
|
DependencyOverride |
A ResolverOverride class that overrides
the value injected whenever there is a dependency of the
given type, regardless of where it appears in the object graph.
|
|
DependencyOverride<(Of <(T>)>) |
A convenience version of DependencyOverride that lets you
specify the dependency type using generic syntax.
|
|
DependencyOverrides |
A convenience form of DependencyOverride that lets you
specify multiple parameter overrides in one shot rather than having
to construct multiple objects.
|
|
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.
|
|
ExtensionContext |
The ExtensionContext class provides the means for extension objects
to manipulate the internal state of the UnityContainer.
|
|
ExternallyControlledLifetimeManager |
A LifetimeManager that holds a weak reference to
it's managed instance.
|
|
GenericParameter |
A InjectionParameterValue that lets you specify that
an instance of a generic type parameter should be resolved.
|
|
GenericParameterBase |
Base class for InjectionParameterValue subclasses that let you specify that
an instance of a generic type parameter should be resolved.
|
|
GenericResolvedArrayParameter |
A InjectionParameterValue that lets you specify that
an array containing the registered instances of a generic type parameter
should be resolved.
|
|
HierarchicalLifetimeManager |
A special lifetime manager which works like ContainerControlledLifetimeManager,
except that in the presence of child containers, each child gets it's own instance
of the object, instead of sharing one in the common parent.
|
|
HierarchicalLifetimeStrategy |
A strategy that handles Hierarchical lifetimes across a set of parent/child
containers.
|
|
InjectedMembers | Obsolete.
A Unity container extension that allows you to configure
which constructors, properties, and methods get injected
via an API rather than through attributes.
|
|
InjectionConstructor |
A class that holds the collection of information
for a constructor, so that the container can
be configured to call this constructor.
|
|
InjectionConstructorAttribute |
This attribute is used to indicate which constructor to choose when
the container attempts to build a type.
|
|
InjectionFactory |
A class that lets you specify a factory method the container
will use to create the object.
|
|
InjectionMember |
Base class for objects that can be used to configure what
class members get injected by the container.
|
|
InjectionMethod |
An InjectionMember that configures the
container to call a method as part of buildup.
|
|
InjectionMethodAttribute |
This attribute is used to mark methods that should be called when
the container is building an object.
|
|
InjectionParameter |
A class that holds on to the given value and provides
the required IDependencyResolverPolicy
when the container is configured.
|
|
InjectionParameter<(Of <(TParameter>)>) |
A generic version of InjectionParameter that makes it a
little easier to specify the type of the parameter.
|
|
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.
|
|
InjectionProperty |
This class stores information about which properties to inject,
and will configure the container accordingly.
|
|
LifetimeManager |
Base class for Lifetime managers - classes that control how
and when instances are created by the Unity container.
|
|
LifetimeManagerFactory |
An implementation of ILifetimeFactoryPolicy that
creates instances of the type of the given Lifetime Manager
by resolving them through the container.
|
|
NamedEventArgs |
An EventArgs class that holds a string Name.
|
|
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.
|
|
OptionalDependencyResolverPolicy |
A IDependencyResolverPolicy that will attempt to
resolve a value, and return null if it cannot rather than throwing.
|
|
OptionalGenericParameter |
A InjectionParameterValue that lets you specify that
an instance of a generic type parameter should be resolved, providing the nullNothingnullptra null reference (Nothing in Visual Basic)
value if resolving fails.
|
|
OptionalParameter |
A InjectionParameterValue that can be passed to
RegisterType(Type, Type, String, LifetimeManager, array<InjectionMember>[]()[]) to configure a
parameter or property as an optional dependency.
|
|
OptionalParameter<(Of <(T>)>) |
A generic version of OptionalParameter that lets you
specify the type of the dependency using generics syntax.
|
|
OverrideCollection<(Of <(TOverride, TKey, TValue>)>) |
Base helper class for creating collections of ResolverOverride objects
for use in passing a bunch of them to the resolve call. This base class provides
the mechanics needed to allow you to use the C# collection initializer syntax.
|
|
ParameterOverride |
A ResolverOverride class that lets you
override a named parameter passed to a constructor.
|
|
ParameterOverrides |
A convenience form of ParameterOverride that lets you
specify multiple parameter overrides in one shot rather than having
to construct multiple objects.
|
|
PerResolveLifetimeManager |
This is a custom lifetime manager that acts like TransientLifetimeManager,
but also provides a signal to the default build plan, marking the type so that
instances are reused across the build up object graph.
|
|
PerThreadLifetimeManager |
A LifetimeManager that holds the instances given to it,
keeping one instance per thread.
|
|
PropertyOverride |
A ResolverOverride that lets you override
the value for a specified property.
|
|
PropertyOverrides |
A convenience form of PropertyOverride that lets you
specify multiple property overrides in one shot rather than having
to construct multiple objects.
|
|
RegisterEventArgs |
Event argument class for the Registering event.
|
|
RegisterInstanceEventArgs |
Event argument class for the RegisteringInstance event.
|
|
ResolutionFailedException |
The exception thrown by the Unity container when
an attempt to resolve a dependency fails.
|
|
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.
|
|
ResolvedArrayParameter<(Of <(TElement>)>) |
A generic version of ResolvedArrayParameter for convenience
when creating them by hand.
|
|
ResolvedArrayWithElementsResolverPolicy |
An implementation of IDependencyResolverPolicy that resolves to
to an array populated with the values that result from resolving other instances
of IDependencyResolverPolicy.
|
|
ResolvedParameter |
A class that stores a name and type, and generates a
resolver object that resolves the parameter via the
container.
|
|
ResolvedParameter<(Of <(TParameter>)>) |
A generic version of ResolvedParameter for convenience
when creating them by hand.
|
|
ResolverOverride |
Base class for all override objects passed in the
Resolve(Type, String, array<ResolverOverride>[]()[]) method.
|
|
SynchronizedLifetimeManager |
Base class for Lifetime managers which need to synchronize calls to
GetValue()()().
|
|
TransientLifetimeManager |
An LifetimeManager implementation that does nothing,
thus ensuring that instances are created new every time.
|
|
TypeBasedOverride |
An implementation of ResolverOverride that
acts as a decorator over another ResolverOverride.
This checks to see if the current type being built is the
right one before checking the inner ResolverOverride.
|
|
TypeBasedOverride<(Of <(T>)>) |
A convenience version of TypeBasedOverride that lets you
specify the type to construct via generics syntax.
|
|
TypedInjectionValue |
A base class for implementing InjectionParameterValue classes
that deal in explicit types.
|
|
UnityContainer |
A simple, extensible dependency injection container.
|
|
UnityContainerExtension |
Base class for all UnityContainer extension objects.
|
|
UnityContainerExtensions |
Extension class that adds a set of convenience overloads to the
IUnityContainer interface.
|
|
UnityDefaultBehaviorExtension |
This extension supplies the default behavior of the UnityContainer API
by handling the context events and setting policies.
|
|
UnityDefaultStrategiesExtension |
This extension installs the default strategies and policies into the container
to implement the standard behavior of the Unity container.
|
|
UnityServiceLocator |
An implementation of IServiceLocator that wraps a Unity container.
|
| Interface | Description | |
|---|---|---|
|
IUnityContainer |
Interface defining the behavior of the Unity dependency injection container.
|
|
IUnityContainerExtensionConfigurator |
Base interface for all extension configuration interfaces.
|