ContainerGetAllInstances Method (Type)

Simple Injector
Gets all instances of the given serviceType currently registered in the container.

Namespace:  SimpleInjector
Assembly:  SimpleInjector (in SimpleInjector.dll) Version: 5.3.0
Syntax

public IEnumerable<Object> GetAllInstances(
	Type serviceType
)

Parameters

serviceType
Type: SystemType
Type of object requested.

Return Value

Type: IEnumerableObject
A sequence of instances of the requested serviceType.
Exceptions

ExceptionCondition
ActivationExceptionThrown when there are errors resolving the service instance.
See Also

Reference