C# Class BuildIt.Autofac.AutofacServiceLocator

Autofac implementation of the Microsoft CommonServiceLocator.
Inheritance: ServiceLocatorImplBase
Afficher le fichier Open project: builttoroam/BuildIt

Méthodes publiques

Méthode Description
AutofacServiceLocator ( IComponentContext container ) : Autofac

Initializes a new instance of the AutofacServiceLocator class.

Méthodes protégées

Méthode Description
DoGetAllInstances ( Type serviceType ) : IEnumerable

Resolves all requested service instances.

DoGetInstance ( Type serviceType, string key ) : object

Resolves the requested service instance.

Method Details

AutofacServiceLocator() public méthode

Initializes a new instance of the AutofacServiceLocator class.
/// Thrown if is . ///
public AutofacServiceLocator ( IComponentContext container ) : Autofac
container IComponentContext /// The from which services /// should be located. ///
Résultat Autofac

DoGetAllInstances() protected méthode

Resolves all requested service instances.
/// Thrown if is . ///
protected DoGetAllInstances ( Type serviceType ) : IEnumerable
serviceType System.Type Type of instance requested.
Résultat IEnumerable

DoGetInstance() protected méthode

Resolves the requested service instance.
/// Thrown if is . ///
protected DoGetInstance ( Type serviceType, string key ) : object
serviceType System.Type Type of instance requested.
key string Name of registered service you want. May be .
Résultat object