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

DependencyResolverMixins.

Register<T>(IMutableDependencyResolver, Func<T>, string) Method

Summary

Registers a factory for the the given T.
Namespace
Splat
Containing Type
DependencyResolverMixins

Syntax

public static void Register<T>(this IMutableDependencyResolver resolver, Func<T> factory, 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.
factory Func<T> A factory method for generating a object of the specified type.
contract string A optional contract value which will indicates to only generate the value if this contract is specified.

Return Value

Type Description
void