C# 클래스 LinFu.IoC.FactoryStorageExtensions

An extension class that adds a few helper methods to the IFactoryStorage interface.
파일 보기 프로젝트 열기: philiplaureano/LinFu

공개 메소드들

메소드 설명
AddFactory ( this storage, string serviceName, Type serviceType, IEnumerable additionalParameterTypes, IFactory factory ) : void

Adds a factory to the current IFactoryStorage instance.

ContainsFactory ( this storage, string serviceName, Type serviceType, IEnumerable additionalParameterTypes ) : bool

Determines whether or not a factory exists in storage.

GetFactory ( this storage, string serviceName, Type serviceType, IEnumerable additionalParameterTypes ) : IFactory

Determines which factories should be used for a particular service request.

GetFactory ( this storage, string serviceName, Type serviceType, IEnumerable additionalParameters ) : IFactory

Determines which factories should be used for a particular service request.

메소드 상세

AddFactory() 공개 정적인 메소드

Adds a factory to the current IFactoryStorage instance.
public static AddFactory ( this storage, string serviceName, Type serviceType, IEnumerable additionalParameterTypes, IFactory factory ) : void
storage this The object that will store the target factory.
serviceName string The name that will be associated with the target factory.
serviceType System.Type The service type that the factory will be able to create.
additionalParameterTypes IEnumerable The list of additional parameters that this factory type will support.
factory IFactory The instance that will create the object instance.
리턴 void

ContainsFactory() 공개 정적인 메소드

Determines whether or not a factory exists in storage.
public static ContainsFactory ( this storage, string serviceName, Type serviceType, IEnumerable additionalParameterTypes ) : bool
storage this The object that holds the target factory.
serviceName string The name that will be associated with the target factory.
serviceType System.Type The service type that the factory will be able to create.
additionalParameterTypes IEnumerable The list of additional parameters that this factory type will support.
리턴 bool

GetFactory() 공개 정적인 메소드

Determines which factories should be used for a particular service request.
public static GetFactory ( this storage, string serviceName, Type serviceType, IEnumerable additionalParameterTypes ) : IFactory
storage this The object that holds the target factory.
serviceName string The name that will be associated with the target factory.
serviceType System.Type The service type that the factory will be able to create.
additionalParameterTypes IEnumerable The list of additional parameters that this factory type will support.
리턴 IFactory

GetFactory() 공개 정적인 메소드

Determines which factories should be used for a particular service request.
public static GetFactory ( this storage, string serviceName, Type serviceType, IEnumerable additionalParameters ) : IFactory
storage this The object that holds the target factory.
serviceName string The name that will be associated with the target factory.
serviceType System.Type The service type that the factory will be able to create.
additionalParameters IEnumerable The list of additional parameter values that this factory type will use to instantiate the service.
리턴 IFactory