C# Class LinFu.IoC.Factories.FunctorFactory

A class that converts a delegate into an IFactory instance.
Inheritance: IFactory
Mostra file Open project: philiplaureano/LinFu Class Usage Examples

Public Methods

Method Description
CreateInstance ( IFactoryRequest request ) : object

Instantiates an object reference using the given factory method.

FunctorFactory ( object>.Func factoryMethod ) : System

Initializes the class with the given factoryMethod.

Method Details

CreateInstance() public method

Instantiates an object reference using the given factory method.
public CreateInstance ( IFactoryRequest request ) : object
request IFactoryRequest The instance that describes the requested service.
return object

FunctorFactory() public method

Initializes the class with the given factoryMethod.
public FunctorFactory ( object>.Func factoryMethod ) : System
factoryMethod object>.Func The delegate that will be used to instantiate a type.
return System