C# Class Hiro.GenericSingletonInstanceContainer

Represents a container type that instantiates generic singleton types at runtime.
Inheritance: GenericInstanceContainer
Afficher le fichier Open project: philiplaureano/Hiro Class Usage Examples

Méthodes publiques

Méthode Description
GenericSingletonInstanceContainer ( string serviceName, Type genericServiceType, Type genericTypeImplementation, IDependencyContainer dependencyContainer ) : System

Initializes a new instance of the GenericSingletonInstanceContainer class.

Méthodes protégées

Méthode Description
Register ( Type serviceType, Type concreteType, DependencyMap map ) : void

Registers the generic service type as a singleton type.

Method Details

GenericSingletonInstanceContainer() public méthode

Initializes a new instance of the GenericSingletonInstanceContainer class.
public GenericSingletonInstanceContainer ( string serviceName, Type genericServiceType, Type genericTypeImplementation, IDependencyContainer dependencyContainer ) : System
serviceName string The name of the generic service.
genericServiceType System.Type The generic type that represents the service type.
genericTypeImplementation System.Type The type that represents the generic service type implementation.
dependencyContainer IDependencyContainer The dependency map that describes the list of services that will be available to the instantiated generic types.
Résultat System

Register() protected méthode

Registers the generic service type as a singleton type.
protected Register ( Type serviceType, Type concreteType, DependencyMap map ) : void
serviceType System.Type The service type that will be registered.
concreteType System.Type The generic concrete type that will implement the generic service type.
map DependencyMap The dependency map that contains all the dependencies.
Résultat void