C# 클래스 BuildIt.Autofac.AutofacServiceLocator

Autofac implementation of the Microsoft CommonServiceLocator.
상속: ServiceLocatorImplBase
파일 보기 프로젝트 열기: builttoroam/BuildIt

공개 메소드들

메소드 설명
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