C# Класс Hiro.GenericSingletonInstanceContainer

Represents a container type that instantiates generic singleton types at runtime.
Наследование: GenericInstanceContainer
Показать файл Открыть проект Примеры использования класса

Открытые методы

Метод Описание
GenericSingletonInstanceContainer ( string serviceName, Type genericServiceType, Type genericTypeImplementation, IDependencyContainer dependencyContainer ) : System

Initializes a new instance of the GenericSingletonInstanceContainer class.

Защищенные методы

Метод Описание
Register ( Type serviceType, Type concreteType, DependencyMap map ) : void

Registers the generic service type as a singleton type.

Описание методов

GenericSingletonInstanceContainer() публичный Метод

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.
Результат System

Register() защищенный Метод

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.
Результат void