4 implementations of PromptNotificationAsync
Aspire.Hosting (1)
InteractionService.cs (1)
219public async Task<InteractionResult<bool>> PromptNotificationAsync(string title, string message, NotificationInteractionOptions? options = null, CancellationToken cancellationToken = default)
Aspire.Hosting.Azure.Tests (1)
tests\Shared\TestInteractionService.cs (1)
48public async Task<InteractionResult<bool>> PromptNotificationAsync(string title, string message, NotificationInteractionOptions? options = null, CancellationToken cancellationToken = default)
Aspire.Hosting.DevTunnels.Tests (1)
DevTunnelCliInstallationManagerTests.cs (1)
76public Task<InteractionResult<bool>> PromptNotificationAsync(string title, string message, NotificationInteractionOptions? options = null, CancellationToken cancellationToken = default)
Aspire.Hosting.Tests (1)
tests\Shared\TestInteractionService.cs (1)
48public async Task<InteractionResult<bool>> PromptNotificationAsync(string title, string message, NotificationInteractionOptions? options = null, CancellationToken cancellationToken = default)
21 references to PromptNotificationAsync
Aspire.Hosting (5)
Dcp\DcpHost.cs (2)
391_ = _interactionService.PromptNotificationAsync(title, message, options, cancellationToken); 418var notificationTask = _interactionService.PromptNotificationAsync(title, message, options, notificationCts.Token);
Orchestrator\ParameterProcessor.cs (1)
237var result = await interactionService.PromptNotificationAsync(
Pipelines\DistributedApplicationPipeline.cs (1)
86var result = await interactionService.PromptNotificationAsync(
VersionChecking\VersionCheckService.cs (1)
146var result = await _interactionService.PromptNotificationAsync(
Aspire.Hosting.Azure (1)
Provisioning\Internal\RunModeProvisioningContextProvider.cs (1)
106var messageBarResult = await _interactionService.PromptNotificationAsync(
Aspire.Hosting.Azure.Functions (1)
src\Shared\RequiredCommandValidator.cs (1)
136_notificationTask = _interactionService.PromptNotificationAsync(
Aspire.Hosting.DevTunnels (3)
DevTunnelLoginManager.cs (1)
57var result = await _interactionService.PromptNotificationAsync(
LoggedOutNotificationManager.cs (1)
17_ = await interactionService.PromptNotificationAsync(
src\Shared\RequiredCommandValidator.cs (1)
136_notificationTask = _interactionService.PromptNotificationAsync(
Aspire.Hosting.Python (1)
src\Shared\RequiredCommandValidator.cs (1)
136_notificationTask = _interactionService.PromptNotificationAsync(
Stress.AppHost (10)
InteractionCommands.cs (10)
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 }); 520return interactionService.PromptNotificationAsync(