Table of Contents

Class DependencyInjection

Namespace
Dmnk.Blazor.Dialogs.Fluent
Assembly
Dmnk.Blazor.Dialogs.Fluent.dll
public static class DependencyInjection
Inheritance
DependencyInjection
Inherited Members

Methods

AddFluentMvvmDialogs(IServiceCollection)

Registers relevant types in DI and returns an instance of FluentVmDialogController. An IViewModelRegistry must also be registered separately (e.g. via AddMvvm()) for the DialogControllerProvider to resolve dialog views.

This also registers ViewModelRegistration entries for the built-in dialog types (MessageBoxViewModel, ConfirmationDialogViewModel, InputDialogViewModel<T>), so they are automatically picked up by ViewModelRegistry.

public static FluentVmDialogController AddFluentMvvmDialogs(this IServiceCollection services)

Parameters

services IServiceCollection

Returns

FluentVmDialogController