C# 클래스 Hiro.GenericSingletonInstanceContainer

Represents a container type that instantiates generic singleton types at runtime.
상속: GenericInstanceContainer
파일 보기 프로젝트 열기: philiplaureano/Hiro 1 사용 예제들

공개 메소드들

메소드 설명
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