C# Class LinFu.IoC.CreatorFromInstance

Represents an ICreateInstance type that generates an object instance from an existing instance.
Inheritance: ICreateInstance
ファイルを表示 Open project: philiplaureano/LinFu

Public Methods

Method Description
CreateFrom ( IFactoryRequest factoryRequest, IFactory factory ) : object

Returns the object instance that given when the CreatorFromInstance class instance was initialized.

Private Methods

Method Description
CreatorFromInstance ( object instance ) : LinFu.IoC.Interfaces

Initializes the class with the target instance.

Method Details

CreateFrom() public method

Returns the object instance that given when the CreatorFromInstance class instance was initialized.
public CreateFrom ( IFactoryRequest factoryRequest, IFactory factory ) : object
factoryRequest IFactoryRequest The instance that describes the context of the service request.
factory IFactory The instance that will be used to instantiate the service type.
return object