Méthode | Description | |
---|---|---|
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
|
|
InstanceContainer ( System serviceType, string serviceName, object instance ) : System |
Initializes a new instance of the InstanceContainer class.
|
public Contains ( System serviceType, string key ) : bool | ||
serviceType | System | The service type to be instantiated. |
key | string | The name of the service itself. |
Résultat | bool |
public GetAllInstances ( System serviceType ) : IEnumerable | ||
serviceType | System | The service type to be instantiated. |
Résultat | IEnumerable |
public GetInstance ( System serviceType, string key ) : object | ||
serviceType | System | The service type to be instantiated. |
key | string | The name of the service itself. |
Résultat | object |
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. |
Résultat | System |