13 writes to Intent
Aspire.Hosting (1)
ApplicationModel\InteractionService.cs (1)
47
options.
Intent
= MessageIntent.Confirmation;
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 });
2 references to Intent
Aspire.Hosting (2)
ApplicationModel\InteractionService.cs (2)
80
var newState = new Interaction(title, message, options, new Interaction.MessageBoxInteractionInfo(intent: options.
Intent
?? MessageIntent.None), cancellationToken);
175
var newState = new Interaction(title, message, options, new Interaction.MessageBarInteractionInfo(intent: options.
Intent
?? MessageIntent.None), cancellationToken);