C# Class OpenRasta.DI.Unity.Extensions.TypeTracker

Adds queries regarding the currently registered type to the Unity DI container. This extension must be installed in any instance of IUnityContainer you want to use with OpenRasta.
Named components are entirely ignored by this extension.
Inheritance: Microsoft.Practices.Unity.UnityContainerExtension
Show file Open project: openrasta/openrasta-unity

Private Properties

Property Type Description
AddMapping void

Public Methods

Method Description
GetAllConcreteTypes ( Type serviceType ) : IEnumerable

Find all the possible implementations of the given type.

HasDependency ( Type serviceType ) : bool

Do we know of any implementations for the given type at all?

HasDependencyImplementation ( Type serviceType, Type concreteType ) : bool

Do we know of a specific implementation of the given type?

Protected Methods

Method Description
Initialize ( ) : void

Private Methods

Method Description
AddMapping ( string name, Type typeFrom, Type typeTo ) : void

Method Details

GetAllConcreteTypes() public method

Find all the possible implementations of the given type.
public GetAllConcreteTypes ( Type serviceType ) : IEnumerable
serviceType System.Type
return IEnumerable

HasDependency() public method

Do we know of any implementations for the given type at all?
public HasDependency ( Type serviceType ) : bool
serviceType System.Type
return bool

HasDependencyImplementation() public method

Do we know of a specific implementation of the given type?
public HasDependencyImplementation ( Type serviceType, Type concreteType ) : bool
serviceType System.Type
concreteType System.Type
return bool

Initialize() protected method

protected Initialize ( ) : void
return void