2 implementations of PromptMessageBoxAsync
Aspire.Hosting (1)
InteractionService.cs (1)
44
public async Task<InteractionResult<bool>>
PromptMessageBoxAsync
(string title, string message, MessageBoxInteractionOptions? options = null, CancellationToken cancellationToken = default)
Aspire.Hosting.Tests (1)
TestInteractionService.cs (1)
47
public Task<InteractionResult<bool>>
PromptMessageBoxAsync
(string title, string message, MessageBoxInteractionOptions? options = null, CancellationToken cancellationToken = default)
5 references to PromptMessageBoxAsync
Stress.AppHost (5)
InteractionCommands.cs (5)
19
var resultTask2 = interactionService.
PromptMessageBoxAsync
("Command confirmation", "Are you really sure?", new MessageBoxInteractionOptions { Intent = MessageIntent.Warning, ShowSecondaryButton = true }, cancellationToken: commandContext.CancellationToken);
28
_ = interactionService.
PromptMessageBoxAsync
("Command executed", "The command successfully executed.", new MessageBoxInteractionOptions { Intent = MessageIntent.Success, PrimaryButtonText = "Yeah!" });
53
_ = interactionService.
PromptMessageBoxAsync
("Success <strong>bar</strong>", "The **command** successfully executed.", new MessageBoxInteractionOptions { Intent = MessageIntent.Success });
54
_ = interactionService.
PromptMessageBoxAsync
("Success <strong>bar</strong>", "The **command** successfully executed.", new MessageBoxInteractionOptions { Intent = MessageIntent.Success, EnableMessageMarkdown = true });
55
_ = interactionService.
PromptMessageBoxAsync
("Success <strong>bar</strong>", "Multiline 1\r\n\r\nMultiline 2", new MessageBoxInteractionOptions { Intent = MessageIntent.Success, EnableMessageMarkdown = true });