C# Class LinFu.IoC.Factories.DelegateFactory

Represents a class that uses a MulticastDelegate to instantiate a service instance.
Inheritance: IFactory
Show file Open project: philiplaureano/LinFu

Public Methods

Method Description
CreateInstance ( IFactoryRequest request ) : object

Instantiates the service type using the given delegate.

DelegateFactory ( MulticastDelegate targetDelegate ) : System

Initializes the class with the given targetDelegate

Method Details

CreateInstance() public method

Instantiates the service type using the given delegate.
public CreateInstance ( IFactoryRequest request ) : object
request IFactoryRequest The that describes the service that needs to be created.
return object

DelegateFactory() public method

Initializes the class with the given targetDelegate
public DelegateFactory ( MulticastDelegate targetDelegate ) : System
targetDelegate System.MulticastDelegate The delegate that will be used to instantiate the factory.
return System