Skip to content

ConfirmDialogService constructor (1 of 2)

Legacy bridge for code that creates the service directly, without a container. Requires an initialized Current.

Namespace: Eremex.AvaloniaUI.Controls.ApplicationServices
Assembly: Eremex.Avalonia.Controls.ApplicationServices.dll
NuGet Package: Eremex.Avalonia.Controls.ApplicationServices

Declaration

public ConfirmDialogService()

See Also


ConfirmDialogService constructor (2 of 2)

Primary constructor. Dependencies are passed explicitly, so the service can be created by any DI container and substituted in tests.

Namespace: Eremex.AvaloniaUI.Controls.ApplicationServices
Assembly: Eremex.Avalonia.Controls.ApplicationServices.dll
NuGet Package: Eremex.Avalonia.Controls.ApplicationServices

Declaration

public ConfirmDialogService(IDialogService dialogService, IApplicationSettingsService settings)

Parameters

name type description
dialogService IDialogService Shows the window that hosts the dialog.
settings IApplicationSettingsService Stores the "do not show again" choices.

Exceptions

exception condition
ArgumentNullException An argument is null.

See Also