Gets all instances of the given TService currently registered in the container.
Namespace: SimpleInjector
Assembly: SimpleInjector (in SimpleInjector.dll) Version: 5.3.0
Syntax
Type Parameters
- TService
- Type of object requested.
Return Value
Type: IEnumerableTServiceA sequence of instances of the requested TService.
Exceptions
Exception | Condition |
---|---|
ActivationException | Thrown when there are errors resolving the service instance. |
See Also