60 references to MessageIntent
Aspire.Hosting (24)
ApplicationModel\RequiredCommandValidator.cs (1)
126Intent = MessageIntent.Warning,
Ats\InteractionExports.cs (2)
629public MessageIntent? Intent { get; init; } 679public MessageIntent? Intent { get; init; }
Dashboard\DashboardService.cs (6)
200private static Aspire.DashboardService.Proto.V1.MessageIntent MapMessageIntent(Aspire.Hosting.MessageIntent? intent) 209Aspire.Hosting.MessageIntent.Success => Aspire.DashboardService.Proto.V1.MessageIntent.Success, 210Aspire.Hosting.MessageIntent.Warning => Aspire.DashboardService.Proto.V1.MessageIntent.Warning, 211Aspire.Hosting.MessageIntent.Error => Aspire.DashboardService.Proto.V1.MessageIntent.Error, 212Aspire.Hosting.MessageIntent.Information => Aspire.DashboardService.Proto.V1.MessageIntent.Information, 213Aspire.Hosting.MessageIntent.Confirmation => Aspire.DashboardService.Proto.V1.MessageIntent.Confirmation,
Dcp\DcpHost.cs (3)
168Intent = MessageIntent.Error, 659Intent = MessageIntent.Error, 678Intent = MessageIntent.Error,
IInteractionService.cs (2)
959public MessageIntent? Intent { get; set; } 972public MessageIntent? Intent { get; set; }
InteractionService.cs (7)
104options.Intent = MessageIntent.Confirmation; 132var newState = new Interaction(title, message, options, new Interaction.MessageBoxInteractionInfo(intent: options.Intent ?? MessageIntent.None), interactionCts.Token); 285var newState = new Interaction(title, message, options, new Interaction.NotificationInteractionInfo(intent: options.Intent ?? MessageIntent.None, linkText: options.LinkText, linkUrl: options.LinkUrl, relatedResourceNames: options.RelatedResourceNames ?? []), interactionCts.Token); 793public MessageBoxInteractionInfo(MessageIntent intent) 798public MessageIntent Intent { get; } 803public NotificationInteractionInfo(MessageIntent intent, string? linkText, string? linkUrl, IReadOnlyList<string> relatedResourceNames) 811public MessageIntent Intent { get; }
Orchestrator\ParameterProcessor.cs (1)
729Intent = MessageIntent.Warning,
Pipelines\DistributedApplicationPipeline.cs (1)
95Intent = MessageIntent.Confirmation,
Publishing\ContainerRuntimeReadiness.cs (1)
51Intent = MessageIntent.Warning
Aspire.Hosting.Azure (2)
AzureEnvironmentResource.cs (1)
360Intent = MessageIntent.Confirmation,
AzureProvisioningController.cs (1)
1717Intent = MessageIntent.Warning,
Aspire.Hosting.Azure.Kusto (1)
AzureKustoBuilderExtensions.cs (1)
439Intent = MessageIntent.Information,
Aspire.Hosting.Azure.Tests (2)
AzureEnvironmentResourceExtensionsTests.cs (2)
725Assert.Equal(MessageIntent.Warning, options.Intent); 754Assert.Equal(MessageIntent.Warning, notificationOptions.Intent);
Aspire.Hosting.DevTunnels (3)
DevTunnelLoginManager.cs (1)
61Intent = MessageIntent.Warning,
DevTunnelResourceBuilderExtensions.cs (1)
878Intent = MessageIntent.None,
LoggedOutNotificationManager.cs (1)
19new() { Intent = MessageIntent.Warning },
Aspire.Hosting.DevTunnels.Tests (1)
DevTunnelResourceBuilderExtensionsTests.cs (1)
632Assert.Equal(MessageIntent.None, options.Intent);
Aspire.Hosting.Docker (1)
DockerComposeEnvironmentResource.cs (1)
534Intent = MessageIntent.Confirmation,
Aspire.Hosting.EntityFrameworkCore (3)
EFResourceBuilderExtensions.cs (3)
1015Intent = MessageIntent.Warning, 1057Intent = MessageIntent.Warning, 1095Intent = MessageIntent.Information,
Aspire.Hosting.Kubernetes (1)
Deployment\HelmDeploymentEngine.cs (1)
686Intent = MessageIntent.Confirmation,
Aspire.Hosting.Tests (6)
Dcp\DcpHostNotificationTests.cs (4)
119Assert.Equal(MessageIntent.Error, notificationOptions.Intent); 162Assert.Equal(MessageIntent.Error, notificationOptions.Intent); 306Assert.Equal(MessageIntent.Error, notificationOptions.Intent); 428Assert.Equal(MessageIntent.Error, notificationOptions.Intent);
Publishing\ContainerRuntimeReadinessTests.cs (1)
63Assert.Equal(MessageIntent.Warning, Assert.IsType<NotificationInteractionOptions>(interaction.Options).Intent);
Publishing\PipelineActivityReporterTests.cs (1)
716Intent = MessageIntent.Information,
Stress.AppHost (16)
InteractionCommands.cs (16)
22var resultTask2 = interactionService.PromptMessageBoxAsync("Command confirmation", "Are you really sure?", new MessageBoxInteractionOptions { Intent = MessageIntent.Warning, ShowSecondaryButton = true }, cancellationToken: commandContext.CancellationToken); 31_ = interactionService.PromptMessageBoxAsync("Command executed", "The command successfully executed.", new MessageBoxInteractionOptions { Intent = MessageIntent.Success, PrimaryButtonText = "Yeah!" }); 39_ = interactionService.PromptNotificationAsync("Success bar", "The command successfully executed.", new NotificationInteractionOptions { Intent = MessageIntent.Success }); 40_ = interactionService.PromptNotificationAsync("Information bar", "The command successfully executed.", new NotificationInteractionOptions { Intent = MessageIntent.Information }); 41_ = interactionService.PromptNotificationAsync("Warning bar", "The command successfully executed.", new NotificationInteractionOptions { Intent = MessageIntent.Warning }); 42_ = interactionService.PromptNotificationAsync("Error bar", "The command successfully executed.", new NotificationInteractionOptions { Intent = MessageIntent.Error, LinkText = "Click here for more information", LinkUrl = "https://www.microsoft.com" }); 43_ = interactionService.PromptNotificationAsync("Confirmation bar", "The command successfully executed.", new NotificationInteractionOptions { Intent = MessageIntent.Confirmation }); 44_ = interactionService.PromptNotificationAsync("No dismiss", "The command successfully executed.", new NotificationInteractionOptions { Intent = MessageIntent.Information, ShowDismiss = false }); 58_ = interactionService.PromptNotificationAsync("Container runtime unhealthy", message, new NotificationInteractionOptions { Intent = MessageIntent.Error, EnableMessageMarkdown = true }); 59_ = interactionService.PromptMessageBoxAsync("Container runtime unhealthy", message, new MessageBoxInteractionOptions { Intent = MessageIntent.Error, EnableMessageMarkdown = true }); 67_ = interactionService.PromptNotificationAsync("Success <strong>bar</strong>", "The **command** successfully executed.", new NotificationInteractionOptions { Intent = MessageIntent.Success }); 68_ = interactionService.PromptNotificationAsync("Success <strong>bar</strong>", "The **command** successfully executed.", new NotificationInteractionOptions { Intent = MessageIntent.Success, EnableMessageMarkdown = true }); 69_ = interactionService.PromptNotificationAsync("Success <strong>bar</strong>", "Multiline 1\r\n\r\nMultiline 2", new NotificationInteractionOptions { Intent = MessageIntent.Success, EnableMessageMarkdown = true }); 71_ = interactionService.PromptMessageBoxAsync("Success <strong>bar</strong>", "The **command** successfully executed.", new MessageBoxInteractionOptions { Intent = MessageIntent.Success }); 72_ = interactionService.PromptMessageBoxAsync("Success <strong>bar</strong>", "The **command** successfully executed.", new MessageBoxInteractionOptions { Intent = MessageIntent.Success, EnableMessageMarkdown = true }); 73_ = interactionService.PromptMessageBoxAsync("Success <strong>bar</strong>", "Multiline 1\r\n\r\nMultiline 2", new MessageBoxInteractionOptions { Intent = MessageIntent.Success, EnableMessageMarkdown = true });