Aspirerelease/17.0
Watch Aspire live streamsDocsTry Aspire

PromptNotification

Method
📦 Aspire.Hosting v17.0.0
func (InteractionService) PromptNotification(
title string,
message string,
options ...*PromptNotificationOptions,
) (*BoolInteractionResult, error)

Signature

methodPromptNotification
Prompts the user with a notification.
PromptNotification(
title string,
message string,
options ...*PromptNotificationOptions,
) (*BoolInteractionResult, error)
titlestring
messagestring
options...*PromptNotificationOptionsOptional settings, described under Options.

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

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

Returns (*BoolInteractionResult, error).

Applies to

This method applies to the following types: