C# Class LinFu.IoC.FactoryStorage

Represents an IFactoryStorage instance that adds generics support to the BaseFactoryStorage implementation.
Inheritance: BaseFactoryStorage
Afficher le fichier Open project: philiplaureano/LinFu Class Usage Examples

Méthodes publiques

Méthode Description
ContainsFactory ( IServiceInfo serviceInfo ) : bool

Determines whether or not an IFactory instance can be used to create the given service described by the serviceInfo object.

GetFactory ( IServiceInfo serviceInfo ) : IFactory

Obtains the IFactory instance that can instantiate the service described by the serviceInfo object instance.

Private Methods

Méthode Description
GetDefaultFactory ( string serviceName, Type serviceType, IFactory factory ) : IFactory

Gets the default factory for a particular service type if no other factory instance can be found.

GetGenericFactory ( IServiceInfo serviceInfo, IFactory factory, string serviceName, Type actualServiceType ) : IFactory

Gets the generic factory for a concrete service type.

Method Details

ContainsFactory() public méthode

Determines whether or not an IFactory instance can be used to create the given service described by the serviceInfo object.
public ContainsFactory ( IServiceInfo serviceInfo ) : bool
serviceInfo IServiceInfo The object that describes the service to be created.
Résultat bool

GetFactory() public méthode

Obtains the IFactory instance that can instantiate the service described by the serviceInfo object instance.
public GetFactory ( IServiceInfo serviceInfo ) : IFactory
serviceInfo IServiceInfo The object that describes the service to be created.
Résultat IFactory