57 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)
176private static Aspire.DashboardService.Proto.V1.MessageIntent MapMessageIntent(Aspire.Hosting.MessageIntent? intent) 185Aspire.Hosting.MessageIntent.Success => Aspire.DashboardService.Proto.V1.MessageIntent.Success, 186Aspire.Hosting.MessageIntent.Warning => Aspire.DashboardService.Proto.V1.MessageIntent.Warning, 187Aspire.Hosting.MessageIntent.Error => Aspire.DashboardService.Proto.V1.MessageIntent.Error, 188Aspire.Hosting.MessageIntent.Information => Aspire.DashboardService.Proto.V1.MessageIntent.Information, 189Aspire.Hosting.MessageIntent.Confirmation => Aspire.DashboardService.Proto.V1.MessageIntent.Confirmation,
Dcp\DcpHost.cs (3)
175Intent = MessageIntent.Error, 560Intent = MessageIntent.Error, 579Intent = MessageIntent.Error,
IInteractionService.cs (2)
886public MessageIntent? Intent { get; set; } 899public MessageIntent? Intent { get; set; }
InteractionService.cs (7)
93options.Intent = MessageIntent.Confirmation; 121var newState = new Interaction(title, message, options, new Interaction.MessageBoxInteractionInfo(intent: options.Intent ?? MessageIntent.None), interactionCts.Token); 274var newState = new Interaction(title, message, options, new Interaction.NotificationInteractionInfo(intent: options.Intent ?? MessageIntent.None, linkText: options.LinkText, linkUrl: options.LinkUrl), interactionCts.Token); 743public MessageBoxInteractionInfo(MessageIntent intent) 748public MessageIntent Intent { get; } 753public NotificationInteractionInfo(MessageIntent intent, string? linkText, string? linkUrl) 760public MessageIntent Intent { get; }
Orchestrator\ParameterProcessor.cs (1)
568Intent = MessageIntent.Warning,
Pipelines\DistributedApplicationPipeline.cs (2)
97Intent = MessageIntent.Confirmation, 181Intent = MessageIntent.Warning
Aspire.Hosting.Azure (2)
AzureEnvironmentResource.cs (1)
342Intent = MessageIntent.Confirmation,
AzureProvisioningController.cs (1)
1672Intent = MessageIntent.Warning,
Aspire.Hosting.Azure.Kusto (1)
AzureKustoBuilderExtensions.cs (1)
418Intent = MessageIntent.Information,
Aspire.Hosting.Azure.Tests (2)
AzureEnvironmentResourceExtensionsTests.cs (2)
429Assert.Equal(MessageIntent.Warning, options.Intent); 458Assert.Equal(MessageIntent.Warning, notificationOptions.Intent);
Aspire.Hosting.DevTunnels (3)
DevTunnelLoginManager.cs (1)
61Intent = MessageIntent.Warning,
DevTunnelResourceBuilderExtensions.cs (1)
823Intent = MessageIntent.None,
LoggedOutNotificationManager.cs (1)
19new() { Intent = MessageIntent.Warning },
Aspire.Hosting.DevTunnels.Tests (1)
DevTunnelResourceBuilderExtensionsTests.cs (1)
491Assert.Equal(MessageIntent.None, options.Intent);
Aspire.Hosting.Docker (1)
DockerComposeEnvironmentResource.cs (1)
502Intent = MessageIntent.Confirmation,
Aspire.Hosting.EntityFrameworkCore (3)
EFResourceBuilderExtensions.cs (3)
936Intent = MessageIntent.Warning, 978Intent = MessageIntent.Warning, 1016Intent = MessageIntent.Information,
Aspire.Hosting.Kubernetes (1)
Deployment\HelmDeploymentEngine.cs (1)
653Intent = MessageIntent.Confirmation,
Aspire.Hosting.Tests (5)
Dcp\DcpHostNotificationTests.cs (4)
118Assert.Equal(MessageIntent.Error, notificationOptions.Intent); 161Assert.Equal(MessageIntent.Error, notificationOptions.Intent); 333Assert.Equal(MessageIntent.Error, notificationOptions.Intent); 459Assert.Equal(MessageIntent.Error, notificationOptions.Intent);
Publishing\PipelineActivityReporterTests.cs (1)
718Intent = MessageIntent.Information,
Stress.AppHost (14)
InteractionCommands.cs (14)
21var resultTask2 = interactionService.PromptMessageBoxAsync("Command confirmation", "Are you really sure?", new MessageBoxInteractionOptions { Intent = MessageIntent.Warning, ShowSecondaryButton = true }, cancellationToken: commandContext.CancellationToken); 30_ = interactionService.PromptMessageBoxAsync("Command executed", "The command successfully executed.", new MessageBoxInteractionOptions { Intent = MessageIntent.Success, PrimaryButtonText = "Yeah!" }); 38_ = interactionService.PromptNotificationAsync("Success bar", "The command successfully executed.", new NotificationInteractionOptions { Intent = MessageIntent.Success }); 39_ = interactionService.PromptNotificationAsync("Information bar", "The command successfully executed.", new NotificationInteractionOptions { Intent = MessageIntent.Information }); 40_ = interactionService.PromptNotificationAsync("Warning bar", "The command successfully executed.", new NotificationInteractionOptions { Intent = MessageIntent.Warning }); 41_ = interactionService.PromptNotificationAsync("Error bar", "The command successfully executed.", new NotificationInteractionOptions { Intent = MessageIntent.Error, LinkText = "Click here for more information", LinkUrl = "https://www.microsoft.com" }); 42_ = interactionService.PromptNotificationAsync("Confirmation bar", "The command successfully executed.", new NotificationInteractionOptions { Intent = MessageIntent.Confirmation }); 43_ = interactionService.PromptNotificationAsync("No dismiss", "The command successfully executed.", new NotificationInteractionOptions { Intent = MessageIntent.Information, ShowDismiss = false }); 51_ = interactionService.PromptNotificationAsync("Success <strong>bar</strong>", "The **command** successfully executed.", new NotificationInteractionOptions { Intent = MessageIntent.Success }); 52_ = interactionService.PromptNotificationAsync("Success <strong>bar</strong>", "The **command** successfully executed.", new NotificationInteractionOptions { Intent = MessageIntent.Success, EnableMessageMarkdown = true }); 53_ = interactionService.PromptNotificationAsync("Success <strong>bar</strong>", "Multiline 1\r\n\r\nMultiline 2", new NotificationInteractionOptions { Intent = MessageIntent.Success, EnableMessageMarkdown = true }); 55_ = interactionService.PromptMessageBoxAsync("Success <strong>bar</strong>", "The **command** successfully executed.", new MessageBoxInteractionOptions { Intent = MessageIntent.Success }); 56_ = interactionService.PromptMessageBoxAsync("Success <strong>bar</strong>", "The **command** successfully executed.", new MessageBoxInteractionOptions { Intent = MessageIntent.Success, EnableMessageMarkdown = true }); 57_ = interactionService.PromptMessageBoxAsync("Success <strong>bar</strong>", "Multiline 1\r\n\r\nMultiline 2", new MessageBoxInteractionOptions { Intent = MessageIntent.Success, EnableMessageMarkdown = true });