C# Class Hiro.Functors.Core.FunctorRegistry

Represents a utility class that stores factory functor instances.
Afficher le fichier Open project: philiplaureano/Hiro Class Usage Examples

Méthodes publiques

Méthode Description
AddFunctor ( string key, object>.Func functor ) : void

Adds a functor to the registry.

CreateInstance ( string key, IMicroContainer container ) : object

Creates the instance with the given container and functor key.

GetFunctor ( string key ) : object>.Func

Gets the functor associated with the given functor key.

Method Details

AddFunctor() public static méthode

Adds a functor to the registry.
public static AddFunctor ( string key, object>.Func functor ) : void
key string The key that uniquely identifies the functor.
functor object>.Func The functor instance.
Résultat void

CreateInstance() public static méthode

Creates the instance with the given container and functor key.
public static CreateInstance ( string key, IMicroContainer container ) : object
key string The unique functor id.
container IMicroContainer The host container.
Résultat object

GetFunctor() public static méthode

Gets the functor associated with the given functor key.
public static GetFunctor ( string key ) : object>.Func
key string The unique functor id.
Résultat object>.Func