C# 클래스 LinFu.IoC.FactoryStorage

Represents an IFactoryStorage instance that adds generics support to the BaseFactoryStorage implementation.
상속: BaseFactoryStorage
파일 보기 프로젝트 열기: philiplaureano/LinFu 1 사용 예제들

공개 메소드들

메소드 설명
ContainsFactory ( IServiceInfo serviceInfo ) : bool

Determines whether or not an IFactory instance can be used to create the given service described by the serviceInfo object.

GetFactory ( IServiceInfo serviceInfo ) : IFactory

Obtains the IFactory instance that can instantiate the service described by the serviceInfo object instance.

비공개 메소드들

메소드 설명
GetDefaultFactory ( string serviceName, Type serviceType, IFactory factory ) : IFactory

Gets the default factory for a particular service type if no other factory instance can be found.

GetGenericFactory ( IServiceInfo serviceInfo, IFactory factory, string serviceName, Type actualServiceType ) : IFactory

Gets the generic factory for a concrete service type.

메소드 상세

ContainsFactory() 공개 메소드

Determines whether or not an IFactory instance can be used to create the given service described by the serviceInfo object.
public ContainsFactory ( IServiceInfo serviceInfo ) : bool
serviceInfo IServiceInfo The object that describes the service to be created.
리턴 bool

GetFactory() 공개 메소드

Obtains the IFactory instance that can instantiate the service described by the serviceInfo object instance.
public GetFactory ( IServiceInfo serviceInfo ) : IFactory
serviceInfo IServiceInfo The object that describes the service to be created.
리턴 IFactory