C# Класс BuildIt.Autofac.AutofacServiceLocator

Autofac implementation of the Microsoft CommonServiceLocator.
Наследование: ServiceLocatorImplBase
Показать файл Открыть проект

Открытые методы

Метод Описание
AutofacServiceLocator ( IComponentContext container ) : Autofac

Initializes a new instance of the AutofacServiceLocator class.

Защищенные методы

Метод Описание
DoGetAllInstances ( Type serviceType ) : IEnumerable

Resolves all requested service instances.

DoGetInstance ( Type serviceType, string key ) : object

Resolves the requested service instance.

Описание методов

AutofacServiceLocator() публичный Метод

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. ///
Результат Autofac

DoGetAllInstances() защищенный Метод

Resolves all requested service instances.
/// Thrown if is . ///
protected DoGetAllInstances ( Type serviceType ) : IEnumerable
serviceType System.Type Type of instance requested.
Результат IEnumerable

DoGetInstance() защищенный Метод

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 .
Результат object