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

DependencyResolverMixins.

RegisterViewModel<TViewModel>(IMutableDependencyResolver, TViewModel, string?) Method

Summary

Registers the specified view model with the Splat locator.
Namespace
Sextant
Containing Type
DependencyResolverMixins

Syntax

public static IMutableDependencyResolver RegisterViewModel<TViewModel>(this IMutableDependencyResolver dependencyResolver, TViewModel viewModel, string? contract = null) 
    where TViewModel : class, IViewModel

Type Parameters

Name Description
TViewModel The type of the view model.

Parameters

Name Type Description
dependencyResolver IMutableDependencyResolver The dependency resolver.
viewModel TViewModel The view model.
contract string? The contract.

Return Value

Type Description
IMutableDependencyResolver The dependencyResolver.