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

DependencyResolverMixins.

GetService<T>(IReadonlyDependencyResolver, string) Method

Summary

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

Syntax

public static T GetService<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
T The requested object, if found; null otherwise.