C# Class LinFu.IoC.BaseFactoryStorage

Represents the default base implementation of the IFactoryStorage class.
Inheritance: IFactoryStorage
Afficher le fichier Open project: philiplaureano/LinFu

Méthodes publiques

Méthode Description
AddFactory ( IServiceInfo serviceInfo, IFactory factory ) : void

Adds a IFactory to the current IFactoryStorage object.

ContainsFactory ( IServiceInfo serviceInfo ) : bool

Determines whether or not a factory exists in storage.

GetFactory ( IServiceInfo serviceInfo ) : IFactory

Determines which factories should be used for a particular service request.

Method Details

AddFactory() public méthode

Adds a IFactory to the current IFactoryStorage object.
public AddFactory ( IServiceInfo serviceInfo, IFactory factory ) : void
serviceInfo IServiceInfo The object that describes the target factory.
factory IFactory The instance that will create the object instance.
Résultat void

ContainsFactory() public méthode

Determines whether or not a factory exists in storage.
public ContainsFactory ( IServiceInfo serviceInfo ) : bool
serviceInfo IServiceInfo The object that describes the target factory.
Résultat bool

GetFactory() public méthode

Determines which factories should be used for a particular service request.
public GetFactory ( IServiceInfo serviceInfo ) : IFactory
serviceInfo IServiceInfo The object that describes the target factory.
Résultat IFactory