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

Represents an IFactoryStorage instance that adds generics support to the BaseFactoryStorage implementation.
Наследование: BaseFactoryStorage
Показать файл Открыть проект Примеры использования класса

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

Метод Описание
ContainsFactory ( IServiceInfo serviceInfo ) : bool

Determines whether or not an IFactory instance can be used to create the given service described by the serviceInfo object.

GetFactory ( IServiceInfo serviceInfo ) : IFactory

Obtains the IFactory instance that can instantiate the service described by the serviceInfo object instance.

Приватные методы

Метод Описание
GetDefaultFactory ( string serviceName, Type serviceType, IFactory factory ) : IFactory

Gets the default factory for a particular service type if no other factory instance can be found.

GetGenericFactory ( IServiceInfo serviceInfo, IFactory factory, string serviceName, Type actualServiceType ) : IFactory

Gets the generic factory for a concrete service type.

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

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

Determines whether or not an IFactory instance can be used to create the given service described by the serviceInfo object.
public ContainsFactory ( IServiceInfo serviceInfo ) : bool
serviceInfo IServiceInfo The object that describes the service to be created.
Результат bool

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

Obtains the IFactory instance that can instantiate the service described by the serviceInfo object instance.
public GetFactory ( IServiceInfo serviceInfo ) : IFactory
serviceInfo IServiceInfo The object that describes the service to be created.
Результат IFactory