Метод | Описание | |
---|---|---|
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.
|
Метод | Описание | |
---|---|---|
ClearMultiple ( |
||
ClearSingle ( |
||
ReplaceMultiple ( |
||
ReplaceSingle ( |
||
ResetCache ( |
Метод | Описание | |
---|---|---|
Dispose ( ) : void | ||
GetServiceInstances ( |
public Add ( |
||
serviceType | The service type. | |
service | object | The service instance. |
Результат | void |
public AddRange ( |
||
serviceType | The service type. | |
services | IEnumerable | The services to add. |
Результат | void |
public Clear ( |
||
serviceType | The service type to clear from the services list. | |
Результат | void |
protected ClearMultiple ( |
||
serviceType | ||
Результат | void |
protected abstract ClearSingle ( |
||
serviceType | ||
Результат | void |
public FindIndex ( |
||
serviceType | The service type. | |
match | Predicate | The delegate that defines the conditions of the element /// to search for. |
Результат | int |
public abstract GetService ( |
||
serviceType | ||
Результат | object |
public abstract GetServices ( |
||
serviceType | ||
Результат | 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. |
Результат | 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. |
Результат | void |
public abstract IsSingleService ( |
||
serviceType | type of service to query | |
Результат | bool |
public Remove ( |
||
serviceType | The service type. | |
service | object | The service instance to remove. |
Результат | bool |
public RemoveAll ( |
||
serviceType | The service type. | |
match | Predicate | The delegate that defines the conditions of the elements to remove. |
Результат | int |
public RemoveAt ( |
||
serviceType | The service type. | |
index | int | The zero-based index of the service to remove. |
Результат | void |
public Replace ( |
||
serviceType | The service type. | |
service | object | The service instance. |
Результат | void |
protected ReplaceMultiple ( |
||
serviceType | ||
service | object | |
Результат | void |
public ReplaceRange ( |
||
serviceType | The service type. | |
services | IEnumerable | The service instances. |
Результат | void |
protected abstract ReplaceSingle ( |
||
serviceType | ||
service | object | |
Результат | void |
protected ResetCache ( |
||
serviceType | ||
Результат | void |