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

A class that injects unnamed custom IFactory instances into a given service container.
Inheritance: IPreProcessor
Afficher le fichier Open project: philiplaureano/LinFu Class Usage Examples

Méthodes publiques

Méthode 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 méthode

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.
Résultat System

Preprocess() public méthode

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.
Résultat void