30 references to MessageIntent
Aspire.Hosting (16)
Dashboard\DashboardService.cs (6)
177
private static Aspire.DashboardService.Proto.V1.MessageIntent MapMessageIntent(Aspire.Hosting.
MessageIntent
? intent)
186
Aspire.Hosting.
MessageIntent
.Success => Aspire.DashboardService.Proto.V1.MessageIntent.Success,
187
Aspire.Hosting.
MessageIntent
.Warning => Aspire.DashboardService.Proto.V1.MessageIntent.Warning,
188
Aspire.Hosting.
MessageIntent
.Error => Aspire.DashboardService.Proto.V1.MessageIntent.Error,
189
Aspire.Hosting.
MessageIntent
.Information => Aspire.DashboardService.Proto.V1.MessageIntent.Information,
190
Aspire.Hosting.
MessageIntent
.Confirmation => Aspire.DashboardService.Proto.V1.MessageIntent.Confirmation,
IInteractionService.cs (2)
238
public
MessageIntent
? Intent { get; set; }
252
public
MessageIntent
? Intent { get; set; }
InteractionService.cs (7)
37
options.Intent =
MessageIntent
.Confirmation;
62
var newState = new Interaction(title, message, options, new Interaction.MessageBoxInteractionInfo(intent: options.Intent ??
MessageIntent
.None), cancellationToken);
118
var newState = new Interaction(title, message, options, new Interaction.MessageBarInteractionInfo(intent: options.Intent ??
MessageIntent
.None, linkText: options.LinkText, linkUrl: options.LinkUrl), cancellationToken);
366
public MessageBoxInteractionInfo(
MessageIntent
intent)
371
public
MessageIntent
Intent { get; }
376
public MessageBarInteractionInfo(
MessageIntent
intent, string? linkText, string? linkUrl)
383
public
MessageIntent
Intent { get; }
Orchestrator\ParameterProcessor.cs (1)
135
Intent =
MessageIntent
.Warning,
Stress.AppHost (14)
InteractionCommands.cs (14)
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!" });
36
_ = interactionService.PromptMessageBarAsync("Success bar", "The command successfully executed.", new MessageBarInteractionOptions { Intent =
MessageIntent
.Success });
37
_ = interactionService.PromptMessageBarAsync("Information bar", "The command successfully executed.", new MessageBarInteractionOptions { Intent =
MessageIntent
.Information });
38
_ = interactionService.PromptMessageBarAsync("Warning bar", "The command successfully executed.", new MessageBarInteractionOptions { Intent =
MessageIntent
.Warning });
39
_ = interactionService.PromptMessageBarAsync("Error bar", "The command successfully executed.", new MessageBarInteractionOptions { Intent =
MessageIntent
.Error, LinkText = "Click here for more information", LinkUrl = "https://www.microsoft.com" });
40
_ = interactionService.PromptMessageBarAsync("Confirmation bar", "The command successfully executed.", new MessageBarInteractionOptions { Intent =
MessageIntent
.Confirmation });
41
_ = interactionService.PromptMessageBarAsync("No dismiss", "The command successfully executed.", new MessageBarInteractionOptions { Intent =
MessageIntent
.Information, ShowDismiss = false });
49
_ = interactionService.PromptMessageBarAsync("Success <strong>bar</strong>", "The **command** successfully executed.", new MessageBarInteractionOptions { Intent =
MessageIntent
.Success });
50
_ = interactionService.PromptMessageBarAsync("Success <strong>bar</strong>", "The **command** successfully executed.", new MessageBarInteractionOptions { Intent =
MessageIntent
.Success, EnableMessageMarkdown = true });
51
_ = interactionService.PromptMessageBarAsync("Success <strong>bar</strong>", "Multiline 1\r\n\r\nMultiline 2", new MessageBarInteractionOptions { Intent =
MessageIntent
.Success, EnableMessageMarkdown = true });
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 });