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

DependencyResolverMixins.

RegisterConstant(IMutableDependencyResolver, object, Type, string) Method

Summary

Registers a constant value which will always return the specified object instance.
Namespace
Splat
Containing Type
DependencyResolverMixins

Syntax

public static void RegisterConstant(this IMutableDependencyResolver resolver, object value, Type serviceType, string contract = null)

Parameters

Name Type Description
resolver IMutableDependencyResolver The resolver to register the service type with.
value object The specified instance to always return.
serviceType Type The type of service to register.
contract string A optional contract value which will indicates to only return the value if this contract is specified.

Return Value

Type Description
void