27 references to MessageIntent
Aspire.Hosting (15)
ApplicationModel\InteractionService.cs (9)
47
options.Intent =
MessageIntent
.Confirmation;
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);
428
public
MessageIntent
? Intent { get; set; }
442
public
MessageIntent
? Intent { get; set; }
555
public MessageBoxInteractionInfo(
MessageIntent
intent)
560
public
MessageIntent
Intent { get; }
565
public MessageBarInteractionInfo(
MessageIntent
intent)
570
public
MessageIntent
Intent { get; }
Dashboard\DashboardService.cs (6)
167
private static MessageIntent MapMessageIntent(ApplicationModel.
MessageIntent
? intent)
176
case ApplicationModel.
MessageIntent
.Success:
178
case ApplicationModel.
MessageIntent
.Warning:
180
case ApplicationModel.
MessageIntent
.Error:
182
case ApplicationModel.
MessageIntent
.Information:
184
case ApplicationModel.
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 });