UnityHierarchicalDependencyResolver Class

An implementation of IDependencyResolver that wraps a Unity container and creates a new child container when BeginScope() is invoked.

Namespace: Microsoft.Practices.Unity.WebApi
Assembly: Microsoft.Practices.Unity.WebApi (in Microsoft.Practices.Unity.WebApi.dll) Version: 3.0.0.0 (3.0.1304.0)

Syntax

public sealed class UnityHierarchicalDependencyResolver : IDependencyResolver, 
    IDependencyScope, IDisposable
'Declaration
Public NotInheritable Class UnityHierarchicalDependencyResolver
    Implements IDependencyResolver, IDependencyScope, IDisposable
public ref class UnityHierarchicalDependencyResolver sealed : IDependencyResolver, 
    IDependencyScope, IDisposable

Remarks

Because each scope creates a new child Unity container, you can benefit from using the HierarchicalLifetimeManager lifetime manager.

Inheritance Hierarchy

System.Object
Microsoft.Practices.Unity.WebApi.UnityHierarchicalDependencyResolver

See Also

UnityHierarchicalDependencyResolver Members

Microsoft.Practices.Unity.WebApi Namespace