Click or drag to resize
DigitalRuneServiceContainerGetAllInstancesTService Method
Gets all named instances of the given service type currently registered in the container.

Namespace: DigitalRune.ServiceLocation
Assembly: DigitalRune.ServiceLocation (in DigitalRune.ServiceLocation.dll) Version: 1.3.0.0 (1.3.0.13596)
Syntax
public IEnumerable<TService> GetAllInstances<TService>()

Type Parameters

TService
The type of the service requested.

Return Value

Type: IEnumerableTService
A sequence of instances of the requested TService.

Implements

IServiceLocatorGetAllInstancesTService
Exceptions
ExceptionCondition
ActivationException An error occurred while resolving the service instance.
Remarks
This method returns only "named" instances. An instance is "named" if it was registered with a key that is not (see method Register(Type, String, Object) and its overloads).
See Also