InteractionService.PromptConfirmation

Method
📦 Aspire.Hosting v17.0.0
type InteractionService interface {
// ... omitted for brevity
PromptConfirmation(
title string,
message string,
options ...*PromptConfirmationOptions,
) (*BoolInteractionResult, error)
}

Signature

methodPromptConfirmation
Prompts the user for confirmation with an OK/Cancel dialog.
PromptConfirmation(
title string,
message string,
options ...*PromptConfirmationOptions,
) (*BoolInteractionResult, error)
titlestring
messagestring
options...*PromptConfirmationOptionsOptional settings, described under Options.

Optional parameters are passed in a trailing options ...*PromptConfirmationOptions argument.

Options*InteractionMessageBoxOptions
CancellationToken*CancellationToken
(*BoolInteractionResult, error)

Returns (*BoolInteractionResult, error).

Defined on

This method is defined on the following type: