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

DependencyResolverMixins.

GetServices<T>(IReadonlyDependencyResolver, string) Method

Summary

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

Syntax

public static IEnumerable<T> GetServices<T>(this IReadonlyDependencyResolver resolver, string contract = null)

Type Parameters

Name Description
T The type for the object we want to retrieve.

Parameters

Name Type Description
resolver IReadonlyDependencyResolver The resolver we are getting the service from.
contract string A optional value which will retrieve only a object registered with the same contract.

Return Value

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