C# Класс LinFu.IoC.BaseFactoryStorage

Represents the default base implementation of the IFactoryStorage class.
Наследование: IFactoryStorage
Показать файл Открыть проект

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

Метод Описание
AddFactory ( IServiceInfo serviceInfo, IFactory factory ) : void

Adds a IFactory to the current IFactoryStorage object.

ContainsFactory ( IServiceInfo serviceInfo ) : bool

Determines whether or not a factory exists in storage.

GetFactory ( IServiceInfo serviceInfo ) : IFactory

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

Описание методов

AddFactory() публичный Метод

Adds a IFactory to the current IFactoryStorage object.
public AddFactory ( IServiceInfo serviceInfo, IFactory factory ) : void
serviceInfo IServiceInfo The object that describes the target factory.
factory IFactory The instance that will create the object instance.
Результат void

ContainsFactory() публичный Метод

Determines whether or not a factory exists in storage.
public ContainsFactory ( IServiceInfo serviceInfo ) : bool
serviceInfo IServiceInfo The object that describes the target factory.
Результат bool

GetFactory() публичный Метод

Determines which factories should be used for a particular service request.
public GetFactory ( IServiceInfo serviceInfo ) : IFactory
serviceInfo IServiceInfo The object that describes the target factory.
Результат IFactory