C# 클래스 Hiro.InstanceContainer

Represents a IMicroContainer type that can store object references.
상속: IMicroContainer
파일 보기 프로젝트 열기: philiplaureano/Hiro

공개 메소드들

메소드 설명
Contains ( System serviceType, string key ) : bool

Determines whether or not the container holds a particular service implementation.

GetAllInstances ( System serviceType ) : IEnumerable

Returns all object instances that match the given serviceType.

GetInstance ( System serviceType, string key ) : object

Obtains an object instance that matches the given serviceType and service name.

InstanceContainer ( System serviceType, string serviceName, object instance ) : System

Initializes a new instance of the InstanceContainer class.

메소드 상세

Contains() 공개 메소드

Determines whether or not the container holds a particular service implementation.
public Contains ( System serviceType, string key ) : bool
serviceType System The service type to be instantiated.
key string The name of the service itself.
리턴 bool

GetAllInstances() 공개 메소드

Returns all object instances that match the given serviceType.
public GetAllInstances ( System serviceType ) : IEnumerable
serviceType System The service type to be instantiated.
리턴 IEnumerable

GetInstance() 공개 메소드

Obtains an object instance that matches the given serviceType and service name.
public GetInstance ( System serviceType, string key ) : object
serviceType System The service type to be instantiated.
key string The name of the service itself.
리턴 object

InstanceContainer() 공개 메소드

Initializes a new instance of the InstanceContainer class.
public InstanceContainer ( System serviceType, string serviceName, object instance ) : System
serviceType System The service type.
serviceName string The service name.
instance object The instance that the container will contain.
리턴 System