C# Class LinFu.IoC.Configuration.Injectors.CustomFactoryInjector

A class that injects unnamed custom IFactory instances into a given service container.
Inheritance: IPreProcessor
ファイルを表示 Open project: philiplaureano/LinFu Class Usage Examples

Public Methods

Method Description
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.

Method Details

CustomFactoryInjector() public method

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.
return System

Preprocess() public method

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.
return void