C# Класс LinFu.IoC.Configuration.Injectors.CustomFactoryInjector

A class that injects unnamed custom IFactory instances into a given service container.
Наследование: IPreProcessor
Показать файл Открыть проект Примеры использования класса

Открытые методы

Метод Описание
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