27 writes to Intent
Aspire.Hosting (8)
ApplicationModel\RequiredCommandValidator.cs (1)
126
Intent
= MessageIntent.Warning,
Ats\InteractionExports.cs (1)
700
Intent
= Intent,
Dcp\DcpHost.cs (3)
168
Intent
= MessageIntent.Error,
659
Intent
= MessageIntent.Error,
678
Intent
= MessageIntent.Error,
Orchestrator\ParameterProcessor.cs (1)
729
Intent
= MessageIntent.Warning,
Pipelines\DistributedApplicationPipeline.cs (1)
95
Intent
= MessageIntent.Confirmation,
Publishing\ContainerRuntimeReadiness.cs (1)
51
Intent
= MessageIntent.Warning
Aspire.Hosting.Azure (2)
AzureEnvironmentResource.cs (1)
360
Intent
= MessageIntent.Confirmation,
AzureProvisioningController.cs (1)
1717
Intent
= MessageIntent.Warning,
Aspire.Hosting.DevTunnels (2)
DevTunnelLoginManager.cs (1)
61
Intent
= MessageIntent.Warning,
LoggedOutNotificationManager.cs (1)
19
new() {
Intent
= MessageIntent.Warning },
Aspire.Hosting.Docker (1)
DockerComposeEnvironmentResource.cs (1)
534
Intent
= MessageIntent.Confirmation,
Aspire.Hosting.EntityFrameworkCore (2)
EFResourceBuilderExtensions.cs (2)
1015
Intent
= MessageIntent.Warning,
1057
Intent
= MessageIntent.Warning,
Aspire.Hosting.Kubernetes (1)
Deployment\HelmDeploymentEngine.cs (1)
686
Intent
= MessageIntent.Confirmation,
Aspire.Hosting.Tests (1)
Publishing\PipelineActivityReporterTests.cs (1)
716
Intent
= MessageIntent.Information,
Stress.AppHost (10)
InteractionCommands.cs (10)
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 });
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 });
8 references to Intent
Aspire.Hosting (1)
InteractionService.cs (1)
285
var 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);
Aspire.Hosting.Azure.Tests (2)
AzureEnvironmentResourceExtensionsTests.cs (2)
725
Assert.Equal(MessageIntent.Warning, options.
Intent
);
754
Assert.Equal(MessageIntent.Warning, notificationOptions.
Intent
);
Aspire.Hosting.Tests (5)
Dcp\DcpHostNotificationTests.cs (4)
119
Assert.Equal(MessageIntent.Error, notificationOptions.
Intent
);
162
Assert.Equal(MessageIntent.Error, notificationOptions.
Intent
);
306
Assert.Equal(MessageIntent.Error, notificationOptions.
Intent
);
428
Assert.Equal(MessageIntent.Error, notificationOptions.
Intent
);
Publishing\ContainerRuntimeReadinessTests.cs (1)
63
Assert.Equal(MessageIntent.Warning, Assert.IsType<NotificationInteractionOptions>(interaction.Options).
Intent
);