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

IReadonlyDependencyResolver.

GetService(Type, string) Method

Summary

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

Syntax

object GetService(Type serviceType, string contract = null)

Parameters

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

Return Value

Type Description
object The requested object, if found; null otherwise.