Table of Contents

Interface IConfirmService

Namespace
BlazOrbit.Components
Assembly
BlazOrbit.dll

Themed replacement for the native window.confirm() prompt. Renders a BOBConfirmDialog via IModalService and returns whether the user accepted.

public interface IConfirmService

Remarks

Auto-registered by AddBlazOrbit(). Requires <BOBModalHost /> mounted somewhere in the app shell — the same prerequisite as the rest of the modal stack.

Methods

AskAsync(string, string, ConfirmSeverity, string, string, TimeSpan?)

Shows a confirm dialog and resolves with true when the user accepts, false when they cancel, dismiss, or the optional timeout elapses.

Task<bool> AskAsync(string title, string message, ConfirmSeverity severity = ConfirmSeverity.Info, string yesLabel = "Yes", string noLabel = "Cancel", TimeSpan? timeout = null)

Parameters

title string

Dialog title.

message string

Body message rendered below the title.

severity ConfirmSeverity

Visual tone. Danger styles the accept button as destructive.

yesLabel string

Label for the accept button.

noLabel string

Label for the cancel button.

timeout TimeSpan?

Optional auto-cancel deadline. null = no timeout.

Returns

Task<bool>