C# Class Hiro.GenericSingletonInstanceContainer

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

Public Methods

Method Description
GenericSingletonInstanceContainer ( string serviceName, Type genericServiceType, Type genericTypeImplementation, IDependencyContainer dependencyContainer ) : System

Initializes a new instance of the GenericSingletonInstanceContainer class.

Protected Methods

Method Description
Register ( Type serviceType, Type concreteType, DependencyMap map ) : void

Registers the generic service type as a singleton type.

Method Details

GenericSingletonInstanceContainer() public method

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.
return System

Register() protected method

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.
return void