Method | 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.
|
Method | Description | |
---|---|---|
ClearMultiple ( |
||
ClearSingle ( |
||
ReplaceMultiple ( |
||
ReplaceSingle ( |
||
ResetCache ( |
Method | Description | |
---|---|---|
Dispose ( ) : void | ||
GetServiceInstances ( |
public Add ( |
||
serviceType | The service type. | |
service | object | The service instance. |
return | void |
public AddRange ( |
||
serviceType | The service type. | |
services | IEnumerable | The services to add. |
return | void |
public Clear ( |
||
serviceType | The service type to clear from the services list. | |
return | void |
protected ClearMultiple ( |
||
serviceType | ||
return | void |
protected abstract ClearSingle ( |
||
serviceType | ||
return | void |
public FindIndex ( |
||
serviceType | The service type. | |
match | Predicate | The delegate that defines the conditions of the element /// to search for. |
return | int |
public abstract GetService ( |
||
serviceType | ||
return | object |
public abstract GetServices ( |
||
serviceType | ||
return | 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. |
return | 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. |
return | void |
public abstract IsSingleService ( |
||
serviceType | type of service to query | |
return | bool |
public Remove ( |
||
serviceType | The service type. | |
service | object | The service instance to remove. |
return | bool |
public RemoveAll ( |
||
serviceType | The service type. | |
match | Predicate | The delegate that defines the conditions of the elements to remove. |
return | int |
public RemoveAt ( |
||
serviceType | The service type. | |
index | int | The zero-based index of the service to remove. |
return | void |
public Replace ( |
||
serviceType | The service type. | |
service | object | The service instance. |
return | void |
protected ReplaceMultiple ( |
||
serviceType | ||
service | object | |
return | void |
public ReplaceRange ( |
||
serviceType | The service type. | |
services | IEnumerable | The service instances. |
return | void |
protected abstract ReplaceSingle ( |
||
serviceType | ||
service | object | |
return | void |
protected ResetCache ( |
||
serviceType | ||
return | void |