The recording of the first ever ReactiveUI virtual conference is available on our YouTube Channel.

IReadonlyDependencyResolver.

GetServices(Type, string) Method

Summary

Gets all instances of the given serviceType. Must return an empty collection if the service is not available (must not return null or throw).
Namespace
Splat
Containing Type
IReadonlyDependencyResolver

Syntax

IEnumerable<object> GetServices(Type serviceType, string contract = null)

Parameters

Name Type Description
serviceType Type The object type.
contract string A optional value which will retrieve only objects registered with the same contract.

Return Value

Type Description
IEnumerable<object> A sequence of instances of the requested serviceType. The sequence should be empty (not null) if no objects of the given type are available.