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
Afficher le fichier Open project: openrasta/openrasta-unity

Private Properties

Свойство Type Description
AddMapping void

Méthodes publiques

Méthode 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?

Méthodes protégées

Méthode Description
Initialize ( ) : void

Private Methods

Méthode Description
AddMapping ( string name, Type typeFrom, Type typeTo ) : void

Method Details

GetAllConcreteTypes() public méthode

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

HasDependency() public méthode

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

HasDependencyImplementation() public méthode

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

Initialize() protected méthode

protected Initialize ( ) : void
Résultat void