17 instantiations of NotificationInteractionOptions
Aspire.Hosting (5)
Dcp\DcpHost.cs (2)
399
var options = new
NotificationInteractionOptions
418
var options = new
NotificationInteractionOptions
IInteractionService.cs (1)
382
internal static NotificationInteractionOptions CreateDefault() =>
new
();
Orchestrator\ParameterProcessor.cs (1)
133
new
NotificationInteractionOptions
VersionChecking\VersionCheckService.cs (1)
139
options: new
NotificationInteractionOptions
Aspire.Hosting.Azure (1)
Provisioning\Internal\DefaultProvisioningContextProvider.cs (1)
87
new
NotificationInteractionOptions
Aspire.Hosting.Tests (1)
Publishing\PublishingActivityReporterTests.cs (1)
500
var notificationOptions = new
NotificationInteractionOptions
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 });
182
options: new
NotificationInteractionOptions
{ ShowDismiss = showDismiss },
15 references to NotificationInteractionOptions
Aspire.Hosting (6)
Dcp\DcpHost.cs (2)
399
var
options = new NotificationInteractionOptions
418
var
options = new NotificationInteractionOptions
IInteractionService.cs (2)
99
Task<InteractionResult<bool>> PromptNotificationAsync(string title, string message,
NotificationInteractionOptions
? options = null, CancellationToken cancellationToken = default);
382
internal static
NotificationInteractionOptions
CreateDefault() => new();
InteractionService.cs (2)
114
public async Task<InteractionResult<bool>> PromptNotificationAsync(string title, string message,
NotificationInteractionOptions
? options = null, CancellationToken cancellationToken = default)
120
options ??=
NotificationInteractionOptions
.CreateDefault();
Aspire.Hosting.Azure.Tests (1)
tests\Shared\TestInteractionService.cs (1)
48
public async Task<InteractionResult<bool>> PromptNotificationAsync(string title, string message,
NotificationInteractionOptions
? options = null, CancellationToken cancellationToken = default)
Aspire.Hosting.Tests (8)
Dcp\DcpHostNotificationTests.cs (6)
86
var
notificationOptions = Assert.IsType<
NotificationInteractionOptions
>(interaction.Options);
245
var
notificationOptions = Assert.IsType<
NotificationInteractionOptions
>(interaction.Options);
359
var
notificationOptions = Assert.IsType<
NotificationInteractionOptions
>(interaction.Options);
Publishing\PublishingActivityReporterTests.cs (1)
500
var
notificationOptions = new NotificationInteractionOptions
tests\Shared\TestInteractionService.cs (1)
48
public async Task<InteractionResult<bool>> PromptNotificationAsync(string title, string message,
NotificationInteractionOptions
? options = null, CancellationToken cancellationToken = default)