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

DependencyResolverMixins.

RegisterConstant<T>(IMutableDependencyResolver, T, 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<T>(this IMutableDependencyResolver resolver, T value, string contract = null)

Type Parameters

Name Description
T The service type to register for.

Parameters

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

Return Value

Type Description
void