58 references to MessageIntent
Aspire.Hosting (24)
ApplicationModel\RequiredCommandValidator.cs (1)
126
Intent =
MessageIntent
.Warning,
Ats\InteractionExports.cs (2)
629
public
MessageIntent
? Intent { get; init; }
679
public
MessageIntent
? Intent { get; init; }
Dashboard\DashboardService.cs (6)
199
private static Aspire.DashboardService.Proto.V1.MessageIntent MapMessageIntent(Aspire.Hosting.
MessageIntent
? intent)
208
Aspire.Hosting.
MessageIntent
.Success => Aspire.DashboardService.Proto.V1.MessageIntent.Success,
209
Aspire.Hosting.
MessageIntent
.Warning => Aspire.DashboardService.Proto.V1.MessageIntent.Warning,
210
Aspire.Hosting.
MessageIntent
.Error => Aspire.DashboardService.Proto.V1.MessageIntent.Error,
211
Aspire.Hosting.
MessageIntent
.Information => Aspire.DashboardService.Proto.V1.MessageIntent.Information,
212
Aspire.Hosting.
MessageIntent
.Confirmation => Aspire.DashboardService.Proto.V1.MessageIntent.Confirmation,
Dcp\DcpHost.cs (3)
177
Intent =
MessageIntent
.Error,
651
Intent =
MessageIntent
.Error,
670
Intent =
MessageIntent
.Error,
IInteractionService.cs (2)
949
public
MessageIntent
? Intent { get; set; }
962
public
MessageIntent
? Intent { get; set; }
InteractionService.cs (7)
97
options.Intent =
MessageIntent
.Confirmation;
125
var newState = new Interaction(title, message, options, new Interaction.MessageBoxInteractionInfo(intent: options.Intent ??
MessageIntent
.None), interactionCts.Token);
278
var newState = new Interaction(title, message, options, new Interaction.NotificationInteractionInfo(intent: options.Intent ??
MessageIntent
.None, linkText: options.LinkText, linkUrl: options.LinkUrl), interactionCts.Token);
786
public MessageBoxInteractionInfo(
MessageIntent
intent)
791
public
MessageIntent
Intent { get; }
796
public NotificationInteractionInfo(
MessageIntent
intent, string? linkText, string? linkUrl)
803
public
MessageIntent
Intent { get; }
Orchestrator\ParameterProcessor.cs (1)
565
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)
338
Intent =
MessageIntent
.Confirmation,
AzureProvisioningController.cs (1)
1669
Intent =
MessageIntent
.Warning,
Aspire.Hosting.Azure.Kusto (1)
AzureKustoBuilderExtensions.cs (1)
418
Intent =
MessageIntent
.Information,
Aspire.Hosting.Azure.Tests (2)
AzureEnvironmentResourceExtensionsTests.cs (2)
426
Assert.Equal(
MessageIntent
.Warning, options.Intent);
455
Assert.Equal(
MessageIntent
.Warning, notificationOptions.Intent);
Aspire.Hosting.DevTunnels (3)
DevTunnelLoginManager.cs (1)
61
Intent =
MessageIntent
.Warning,
DevTunnelResourceBuilderExtensions.cs (1)
871
Intent =
MessageIntent
.None,
LoggedOutNotificationManager.cs (1)
19
new() { Intent =
MessageIntent
.Warning },
Aspire.Hosting.DevTunnels.Tests (1)
DevTunnelResourceBuilderExtensionsTests.cs (1)
595
Assert.Equal(
MessageIntent
.None, options.Intent);
Aspire.Hosting.Docker (1)
DockerComposeEnvironmentResource.cs (1)
528
Intent =
MessageIntent
.Confirmation,
Aspire.Hosting.EntityFrameworkCore (3)
EFResourceBuilderExtensions.cs (3)
1020
Intent =
MessageIntent
.Warning,
1062
Intent =
MessageIntent
.Warning,
1100
Intent =
MessageIntent
.Information,
Aspire.Hosting.Kubernetes (1)
Deployment\HelmDeploymentEngine.cs (1)
687
Intent =
MessageIntent
.Confirmation,
Aspire.Hosting.Tests (6)
Dcp\DcpHostNotificationTests.cs (4)
119
Assert.Equal(
MessageIntent
.Error, notificationOptions.Intent);
162
Assert.Equal(
MessageIntent
.Error, notificationOptions.Intent);
334
Assert.Equal(
MessageIntent
.Error, notificationOptions.Intent);
460
Assert.Equal(
MessageIntent
.Error, notificationOptions.Intent);
Publishing\ContainerRuntimeReadinessTests.cs (1)
63
Assert.Equal(
MessageIntent
.Warning, Assert.IsType<NotificationInteractionOptions>(interaction.Options).Intent);
Publishing\PipelineActivityReporterTests.cs (1)
716
Intent =
MessageIntent
.Information,
Stress.AppHost (14)
InteractionCommands.cs (14)
21
var 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 });