32 references to MessageIntent
Aspire.Hosting (16)
Dashboard\DashboardService.cs (6)
186
private static Aspire.DashboardService.Proto.V1.MessageIntent MapMessageIntent(Aspire.Hosting.
MessageIntent
? intent)
195
Aspire.Hosting.
MessageIntent
.Success => Aspire.DashboardService.Proto.V1.MessageIntent.Success,
196
Aspire.Hosting.
MessageIntent
.Warning => Aspire.DashboardService.Proto.V1.MessageIntent.Warning,
197
Aspire.Hosting.
MessageIntent
.Error => Aspire.DashboardService.Proto.V1.MessageIntent.Error,
198
Aspire.Hosting.
MessageIntent
.Information => Aspire.DashboardService.Proto.V1.MessageIntent.Information,
199
Aspire.Hosting.
MessageIntent
.Confirmation => Aspire.DashboardService.Proto.V1.MessageIntent.Confirmation,
IInteractionService.cs (2)
262
public
MessageIntent
? Intent { get; set; }
276
public
MessageIntent
? Intent { get; set; }
InteractionService.cs (7)
38
options.Intent =
MessageIntent
.Confirmation;
63
var newState = new Interaction(title, message, options, new Interaction.MessageBoxInteractionInfo(intent: options.Intent ??
MessageIntent
.None), cancellationToken);
119
var newState = new Interaction(title, message, options, new Interaction.NotificationInteractionInfo(intent: options.Intent ??
MessageIntent
.None, linkText: options.LinkText, linkUrl: options.LinkUrl), cancellationToken);
412
public MessageBoxInteractionInfo(
MessageIntent
intent)
417
public
MessageIntent
Intent { get; }
422
public NotificationInteractionInfo(
MessageIntent
intent, string? linkText, string? linkUrl)
429
public
MessageIntent
Intent { get; }
Orchestrator\ParameterProcessor.cs (1)
134
Intent =
MessageIntent
.Warning,
Aspire.Hosting.Azure (1)
Provisioning\Internal\DefaultProvisioningContextProvider.cs (1)
81
Intent =
MessageIntent
.Warning,
Aspire.Hosting.Tests (1)
Publishing\PublishingActivityReporterTests.cs (1)
502
Intent =
MessageIntent
.Information,
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.PromptNotificationAsync("Success bar", "The command successfully executed.", new NotificationInteractionOptions { Intent =
MessageIntent
.Success });
37
_ = interactionService.PromptNotificationAsync("Information bar", "The command successfully executed.", new NotificationInteractionOptions { Intent =
MessageIntent
.Information });
38
_ = interactionService.PromptNotificationAsync("Warning bar", "The command successfully executed.", new NotificationInteractionOptions { Intent =
MessageIntent
.Warning });
39
_ = interactionService.PromptNotificationAsync("Error bar", "The command successfully executed.", new NotificationInteractionOptions { Intent =
MessageIntent
.Error, LinkText = "Click here for more information", LinkUrl = "https://www.microsoft.com" });
40
_ = interactionService.PromptNotificationAsync("Confirmation bar", "The command successfully executed.", new NotificationInteractionOptions { Intent =
MessageIntent
.Confirmation });
41
_ = interactionService.PromptNotificationAsync("No dismiss", "The command successfully executed.", new NotificationInteractionOptions { Intent =
MessageIntent
.Information, ShowDismiss = false });
49
_ = interactionService.PromptNotificationAsync("Success <strong>bar</strong>", "The **command** successfully executed.", new NotificationInteractionOptions { Intent =
MessageIntent
.Success });
50
_ = interactionService.PromptNotificationAsync("Success <strong>bar</strong>", "The **command** successfully executed.", new NotificationInteractionOptions { Intent =
MessageIntent
.Success, EnableMessageMarkdown = true });
51
_ = interactionService.PromptNotificationAsync("Success <strong>bar</strong>", "Multiline 1\r\n\r\nMultiline 2", new NotificationInteractionOptions { 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 });