29 instantiations of NotificationInteractionOptions
Aspire.Hosting (10)
ApplicationModel\RequiredCommandValidator.cs (1)
124var options = new NotificationInteractionOptions
Ats\InteractionExports.cs (1)
693return new NotificationInteractionOptions
Dcp\DcpHost.cs (3)
173options: new NotificationInteractionOptions 558var options = new NotificationInteractionOptions 577var options = new NotificationInteractionOptions
IInteractionService.cs (1)
894internal static NotificationInteractionOptions CreateDefault() => new();
Orchestrator\ParameterProcessor.cs (1)
566new NotificationInteractionOptions
Pipelines\DistributedApplicationPipeline.cs (2)
95new NotificationInteractionOptions 179new NotificationInteractionOptions
VersionChecking\VersionCheckService.cs (1)
152options: new NotificationInteractionOptions
Aspire.Hosting.Azure (2)
AzureEnvironmentResource.cs (1)
340new NotificationInteractionOptions
AzureProvisioningController.cs (1)
1670new NotificationInteractionOptions
Aspire.Hosting.DevTunnels (2)
DevTunnelLoginManager.cs (1)
59new()
LoggedOutNotificationManager.cs (1)
19new() { Intent = MessageIntent.Warning },
Aspire.Hosting.Docker (1)
DockerComposeEnvironmentResource.cs (1)
500new NotificationInteractionOptions
Aspire.Hosting.EntityFrameworkCore (2)
EFResourceBuilderExtensions.cs (2)
934options: new NotificationInteractionOptions 976options: new NotificationInteractionOptions
Aspire.Hosting.Kubernetes (1)
Deployment\HelmDeploymentEngine.cs (1)
651new NotificationInteractionOptions
Aspire.Hosting.Tests (1)
Publishing\PipelineActivityReporterTests.cs (1)
716var notificationOptions = new NotificationInteractionOptions
Stress.AppHost (10)
InteractionCommands.cs (10)
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 }); 532options: new NotificationInteractionOptions { ShowDismiss = showDismiss },
26 references to NotificationInteractionOptions
Aspire.Hosting (8)
ApplicationModel\RequiredCommandValidator.cs (1)
124var options = new NotificationInteractionOptions
Ats\InteractionExports.cs (1)
691internal NotificationInteractionOptions ToOptions()
Dcp\DcpHost.cs (2)
558var options = new NotificationInteractionOptions 577var options = new NotificationInteractionOptions
IInteractionService.cs (2)
98Task<InteractionResult<bool>> PromptNotificationAsync(string title, string message, NotificationInteractionOptions? options = null, CancellationToken cancellationToken = default); 894internal static NotificationInteractionOptions CreateDefault() => new();
InteractionService.cs (2)
263public async Task<InteractionResult<bool>> PromptNotificationAsync(string title, string message, NotificationInteractionOptions? options = null, CancellationToken cancellationToken = default) 272options ??= NotificationInteractionOptions.CreateDefault();
Aspire.Hosting.Azure.Tests (5)
AzureEnvironmentResourceExtensionsTests.cs (4)
428var options = Assert.IsType<NotificationInteractionOptions>(interaction.Options); 457var notificationOptions = Assert.IsType<NotificationInteractionOptions>(notification.Options);
tests\Shared\TestInteractionService.cs (1)
60public async Task<InteractionResult<bool>> PromptNotificationAsync(string title, string message, NotificationInteractionOptions? options = null, CancellationToken cancellationToken = default)
Aspire.Hosting.Browsers.Tests (1)
tests\Shared\TestInteractionService.cs (1)
60public async Task<InteractionResult<bool>> PromptNotificationAsync(string title, string message, NotificationInteractionOptions? options = null, CancellationToken cancellationToken = default)
Aspire.Hosting.DevTunnels.Tests (1)
tests\Shared\TestInteractionService.cs (1)
60public async Task<InteractionResult<bool>> PromptNotificationAsync(string title, string message, NotificationInteractionOptions? options = null, CancellationToken cancellationToken = default)
Aspire.Hosting.RemoteHost.Tests (1)
tests\Shared\TestInteractionService.cs (1)
60public async Task<InteractionResult<bool>> PromptNotificationAsync(string title, string message, NotificationInteractionOptions? options = null, CancellationToken cancellationToken = default)
Aspire.Hosting.Tests (10)
Dcp\DcpHostNotificationTests.cs (8)
117var notificationOptions = Assert.IsType<NotificationInteractionOptions>(interaction.Options); 160var notificationOptions = Assert.IsType<NotificationInteractionOptions>(interaction.Options); 332var notificationOptions = Assert.IsType<NotificationInteractionOptions>(interaction.Options); 458var notificationOptions = Assert.IsType<NotificationInteractionOptions>(interaction.Options);
Publishing\PipelineActivityReporterTests.cs (1)
716var notificationOptions = new NotificationInteractionOptions
tests\Shared\TestInteractionService.cs (1)
60public async Task<InteractionResult<bool>> PromptNotificationAsync(string title, string message, NotificationInteractionOptions? options = null, CancellationToken cancellationToken = default)