8 instantiations of MessageBoxInteractionOptions
Aspire.Hosting (1)
IInteractionService.cs (1)
257
internal static MessageBoxInteractionOptions CreateDefault() =>
new
();
Stress.AppHost (7)
InteractionCommands.cs (7)
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 });
188
options: new
MessageBoxInteractionOptions
{ ShowDismiss = showDismiss },
196
options: new
MessageBoxInteractionOptions
{ ShowDismiss = showDismiss },
13 references to MessageBoxInteractionOptions
Aspire.Hosting (9)
IInteractionService.cs (3)
33
Task<InteractionResult<bool>> PromptConfirmationAsync(string title, string message,
MessageBoxInteractionOptions
? options = null, CancellationToken cancellationToken = default);
45
Task<InteractionResult<bool>> PromptMessageBoxAsync(string title, string message,
MessageBoxInteractionOptions
? options = null, CancellationToken cancellationToken = default);
257
internal static
MessageBoxInteractionOptions
CreateDefault() => new();
InteractionService.cs (6)
35
public async Task<InteractionResult<bool>> PromptConfirmationAsync(string title, string message,
MessageBoxInteractionOptions
? options = null, CancellationToken cancellationToken = default)
37
options ??=
MessageBoxInteractionOptions
.CreateDefault();
45
public async Task<InteractionResult<bool>> PromptMessageBoxAsync(string title, string message,
MessageBoxInteractionOptions
? options = null, CancellationToken cancellationToken = default)
47
options ??=
MessageBoxInteractionOptions
.CreateDefault();
54
private async Task<InteractionResult<bool>> PromptMessageBoxCoreAsync(string title, string message,
MessageBoxInteractionOptions
options, CancellationToken cancellationToken)
60
options ??=
MessageBoxInteractionOptions
.CreateDefault();
Aspire.Hosting.Azure.Tests (2)
tests\Shared\TestInteractionService.cs (2)
18
public Task<InteractionResult<bool>> PromptConfirmationAsync(string title, string message,
MessageBoxInteractionOptions
? options = null, CancellationToken cancellationToken = default)
47
public Task<InteractionResult<bool>> PromptMessageBoxAsync(string title, string message,
MessageBoxInteractionOptions
? options = null, CancellationToken cancellationToken = default)
Aspire.Hosting.Tests (2)
tests\Shared\TestInteractionService.cs (2)
18
public Task<InteractionResult<bool>> PromptConfirmationAsync(string title, string message,
MessageBoxInteractionOptions
? options = null, CancellationToken cancellationToken = default)
47
public Task<InteractionResult<bool>> PromptMessageBoxAsync(string title, string message,
MessageBoxInteractionOptions
? options = null, CancellationToken cancellationToken = default)