14 writes to Intent
Aspire.Hosting (3)
Dcp\DcpHost.cs (2)
401
Intent
= MessageIntent.Error,
420
Intent
= MessageIntent.Error,
Orchestrator\ParameterProcessor.cs (1)
135
Intent
= MessageIntent.Warning,
Aspire.Hosting.Azure (1)
Provisioning\Internal\DefaultProvisioningContextProvider.cs (1)
89
Intent
= MessageIntent.Warning,
Aspire.Hosting.Tests (1)
Publishing\PublishingActivityReporterTests.cs (1)
502
Intent
= MessageIntent.Information,
Stress.AppHost (9)
InteractionCommands.cs (9)
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 });
4 references to Intent
Aspire.Hosting (1)
InteractionService.cs (1)
122
var newState = new Interaction(title, message, options, new Interaction.NotificationInteractionInfo(intent: options.
Intent
?? MessageIntent.None, linkText: options.LinkText, linkUrl: options.LinkUrl), cancellationToken);
Aspire.Hosting.Tests (3)
Dcp\DcpHostNotificationTests.cs (3)
87
Assert.Equal(MessageIntent.Error, notificationOptions.
Intent
);
246
Assert.Equal(MessageIntent.Error, notificationOptions.
Intent
);
360
Assert.Equal(MessageIntent.Error, notificationOptions.
Intent
);