13 instantiations of MessageBoxInteractionOptions
Aspire.Hosting (1)
ApplicationModel\InteractionService.cs (1)
423
internal static MessageBoxInteractionOptions CreateDefault() =>
new
();
Stress.AppHost (12)
Program.cs (12)
124
var resultTask2 = interactionService.PromptConfirmationAsync("Command confirmation", "Are you really sure?", new
MessageBoxInteractionOptions
{ Intent = MessageIntent.Warning }, cancellationToken: commandContext.CancellationToken);
133
_ = interactionService.PromptMessageBoxAsync("Command executed", "The command successfully executed.", new
MessageBoxInteractionOptions
{ Intent = MessageIntent.Success, PrimaryButtonText = "Yeah!" });
141
_ = interactionService.PromptMessageBarAsync("Success bar", "The command successfully executed.", new
MessageBoxInteractionOptions
{ Intent = MessageIntent.Success });
142
_ = interactionService.PromptMessageBarAsync("Information bar", "The command successfully executed.", new
MessageBoxInteractionOptions
{ Intent = MessageIntent.Information });
143
_ = interactionService.PromptMessageBarAsync("Warning bar", "The command successfully executed.", new
MessageBoxInteractionOptions
{ Intent = MessageIntent.Warning });
144
_ = interactionService.PromptMessageBarAsync("Error bar", "The command successfully executed.", new
MessageBoxInteractionOptions
{ Intent = MessageIntent.Error });
145
_ = interactionService.PromptMessageBarAsync("Confirmation bar", "The command successfully executed.", new
MessageBoxInteractionOptions
{ Intent = MessageIntent.Confirmation });
146
_ = interactionService.PromptMessageBarAsync("No dismiss", "The command successfully executed.", new
MessageBoxInteractionOptions
{ Intent = MessageIntent.Information, ShowDismiss = false });
154
_ = interactionService.PromptMessageBarAsync("Success <strong>bar</strong>", "The <strong>command</strong> successfully executed.", new
MessageBoxInteractionOptions
{ Intent = MessageIntent.Success });
155
_ = interactionService.PromptMessageBarAsync("Success <strong>bar</strong>", "The <strong>command</strong> successfully executed.", new
MessageBoxInteractionOptions
{ Intent = MessageIntent.Success, EscapeMessageHtml = false });
157
_ = interactionService.PromptMessageBoxAsync("Success <strong>bar</strong>", "The <strong>command</strong> successfully executed.", new
MessageBoxInteractionOptions
{ Intent = MessageIntent.Success });
158
_ = interactionService.PromptMessageBoxAsync("Success <strong>bar</strong>", "The <strong>command</strong> successfully executed.", new
MessageBoxInteractionOptions
{ Intent = MessageIntent.Success, EscapeMessageHtml = false });
9 references to MessageBoxInteractionOptions
Aspire.Hosting (9)
ApplicationModel\InteractionService.cs (9)
44
public async Task<InteractionResult<bool>> PromptConfirmationAsync(string title, string message,
MessageBoxInteractionOptions
? options = null, CancellationToken cancellationToken = default)
46
options ??=
MessageBoxInteractionOptions
.CreateDefault();
64
public async Task<InteractionResult<bool>> PromptMessageBoxAsync(string title, string message,
MessageBoxInteractionOptions
? options = null, CancellationToken cancellationToken = default)
66
options ??=
MessageBoxInteractionOptions
.CreateDefault();
73
private async Task<InteractionResult<bool>> PromptMessageBoxCoreAsync(string title, string message,
MessageBoxInteractionOptions
options, CancellationToken cancellationToken)
77
options ??=
MessageBoxInteractionOptions
.CreateDefault();
169
public async Task<InteractionResult<bool>> PromptMessageBarAsync(string title, string message,
MessageBoxInteractionOptions
? options = null, CancellationToken cancellationToken = default)
173
options ??=
MessageBoxInteractionOptions
.CreateDefault();
423
internal static
MessageBoxInteractionOptions
CreateDefault() => new();