C# Класс LinFu.IoC.Configuration.FactoryAttributeLoader

A class that injects custom IFactory and IFactory{T} instances into an IServiceContainer instance.
Наследование: ITypeLoader
Показать файл Открыть проект

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

Метод Описание
CanLoad ( Type sourceType ) : bool

Determines whether or not the current sourceType can be loaded.

Load ( Type sourceType ) : IEnumerable>

Loads an IFactory and IFactory{T} instance into a IServiceContainer instance using the given sourceType.

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

Метод Описание
GetFactory ( Type currentServiceType, IFactory>.Func getStronglyTypedFactory, ICollection implementedInterfaces ) : IFactory

Instantiates the given factory using the factory functor.

GetResults ( Type sourceType, IEnumerable attributeList, object>.Func getFactoryInstance ) : IEnumerable>

Instantiates the IFactory instances associated with the sourceType and adds those factories to the target container upon initialization.

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

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

Determines whether or not the current sourceType can be loaded.
public CanLoad ( Type sourceType ) : bool
sourceType System.Type The source type currently being loaded.
Результат bool

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

Loads an IFactory and IFactory{T} instance into a IServiceContainer instance using the given sourceType.
public Load ( Type sourceType ) : IEnumerable>
sourceType System.Type The input type from which one or more factories will be created.
Результат IEnumerable>