Méthode | Description | |
---|---|---|
Add ( |
Adds a service to the end of services list for the given service type.
|
|
AddRange ( |
Adds the services of the specified collection to the end of the services list for the given service type.
|
|
Clear ( |
Removes all the service instances of the given service type.
|
|
FindIndex ( |
Searches for a service that matches the conditions defined by the specified predicate, and returns the zero-based index of the first occurrence.
|
|
GetService ( |
||
GetServices ( |
||
Insert ( |
Inserts a service into the collection at the specified index.
|
|
InsertRange ( |
Inserts the elements of the collection into the service list at the specified index.
|
|
IsSingleService ( |
Determine whether the service type should be fetched with GetService or GetServices.
|
|
Remove ( |
Removes the first occurrence of the given service from the service list for the given service type.
|
|
RemoveAll ( |
Removes all the elements that match the conditions defined by the specified predicate.
|
|
RemoveAt ( |
Removes the service at the specified index.
|
|
Replace ( |
Replaces all existing services for the given service type with the given service instance. This works for both singular and plural services.
|
|
ReplaceRange ( |
Replaces all existing services for the given service type with the given service instances.
|
Méthode | Description | |
---|---|---|
ClearMultiple ( |
||
ClearSingle ( |
||
ReplaceMultiple ( |
||
ReplaceSingle ( |
||
ResetCache ( |
Méthode | Description | |
---|---|---|
Dispose ( ) : void | ||
GetServiceInstances ( |
public Add ( |
||
serviceType | The service type. | |
service | object | The service instance. |
Résultat | void |
public AddRange ( |
||
serviceType | The service type. | |
services | IEnumerable | The services to add. |
Résultat | void |
public Clear ( |
||
serviceType | The service type to clear from the services list. | |
Résultat | void |
protected ClearMultiple ( |
||
serviceType | ||
Résultat | void |
protected abstract ClearSingle ( |
||
serviceType | ||
Résultat | void |
public FindIndex ( |
||
serviceType | The service type. | |
match | Predicate | The delegate that defines the conditions of the element /// to search for. |
Résultat | int |
public abstract GetService ( |
||
serviceType | ||
Résultat | object |
public abstract GetServices ( |
||
serviceType | ||
Résultat | IEnumerable |
public Insert ( |
||
serviceType | The service type. | |
index | int | The zero-based index at which the service should be inserted.
/// If |
service | object | The service to insert. |
Résultat | void |
public InsertRange ( |
||
serviceType | The service type. | |
index | int | The zero-based index at which the new elements should be inserted.
/// If |
services | IEnumerable | The collection of services to insert. |
Résultat | void |
public abstract IsSingleService ( |
||
serviceType | type of service to query | |
Résultat | bool |
public Remove ( |
||
serviceType | The service type. | |
service | object | The service instance to remove. |
Résultat | bool |
public RemoveAll ( |
||
serviceType | The service type. | |
match | Predicate | The delegate that defines the conditions of the elements to remove. |
Résultat | int |
public RemoveAt ( |
||
serviceType | The service type. | |
index | int | The zero-based index of the service to remove. |
Résultat | void |
public Replace ( |
||
serviceType | The service type. | |
service | object | The service instance. |
Résultat | void |
protected ReplaceMultiple ( |
||
serviceType | ||
service | object | |
Résultat | void |
public ReplaceRange ( |
||
serviceType | The service type. | |
services | IEnumerable | The service instances. |
Résultat | void |
protected abstract ReplaceSingle ( |
||
serviceType | ||
service | object | |
Résultat | void |
protected ResetCache ( |
||
serviceType | ||
Résultat | void |