C# 클래스 LinFu.IoC.Configuration.Injectors.CustomFactoryInjector

A class that injects unnamed custom IFactory instances into a given service container.
상속: IPreProcessor
파일 보기 프로젝트 열기: philiplaureano/LinFu 1 사용 예제들

공개 메소드들

메소드 설명
CustomFactoryInjector ( Type serviceType, IFactory factory ) : System

Initializes the class with the given service type and factory.

Preprocess ( IServiceRequest request ) : void

Injects the given factory into the target container.

메소드 상세

CustomFactoryInjector() 공개 메소드

Initializes the class with the given service type and factory.
public CustomFactoryInjector ( Type serviceType, IFactory factory ) : System
serviceType System.Type The service type that will be created by the factory.
factory IFactory The instance that will be used to create the service instance.
리턴 System

Preprocess() 공개 메소드

Injects the given factory into the target container.
public Preprocess ( IServiceRequest request ) : void
request IServiceRequest The instance that describes the service that is currently being requested.
리턴 void