13 instantiations of MessageBoxInteractionOptions
Aspire.Hosting (2)
Ats\InteractionExports.cs (1)
633return new MessageBoxInteractionOptions
IInteractionService.cs (1)
954internal static MessageBoxInteractionOptions CreateDefault() => new();
Aspire.Hosting.Azure.Kusto (1)
AzureKustoBuilderExtensions.cs (1)
437new MessageBoxInteractionOptions
Aspire.Hosting.DevTunnels (1)
DevTunnelResourceBuilderExtensions.cs (1)
876new MessageBoxInteractionOptions
Aspire.Hosting.EntityFrameworkCore (1)
EFResourceBuilderExtensions.cs (1)
1093options: new MessageBoxInteractionOptions
Stress.AppHost (8)
InteractionCommands.cs (8)
22var resultTask2 = interactionService.PromptMessageBoxAsync("Command confirmation", "Are you really sure?", new MessageBoxInteractionOptions { Intent = MessageIntent.Warning, ShowSecondaryButton = true }, cancellationToken: commandContext.CancellationToken); 31_ = interactionService.PromptMessageBoxAsync("Command executed", "The command successfully executed.", new MessageBoxInteractionOptions { Intent = MessageIntent.Success, PrimaryButtonText = "Yeah!" }); 59_ = interactionService.PromptMessageBoxAsync("Container runtime unhealthy", message, new MessageBoxInteractionOptions { Intent = MessageIntent.Error, EnableMessageMarkdown = true }); 71_ = interactionService.PromptMessageBoxAsync("Success <strong>bar</strong>", "The **command** successfully executed.", new MessageBoxInteractionOptions { Intent = MessageIntent.Success }); 72_ = interactionService.PromptMessageBoxAsync("Success <strong>bar</strong>", "The **command** successfully executed.", new MessageBoxInteractionOptions { Intent = MessageIntent.Success, EnableMessageMarkdown = true }); 73_ = interactionService.PromptMessageBoxAsync("Success <strong>bar</strong>", "Multiline 1\r\n\r\nMultiline 2", new MessageBoxInteractionOptions { Intent = MessageIntent.Success, EnableMessageMarkdown = true }); 637options: new MessageBoxInteractionOptions { ShowDismiss = showDismiss }, 645options: new MessageBoxInteractionOptions { ShowDismiss = showDismiss },
22 references to MessageBoxInteractionOptions
Aspire.Hosting (10)
Ats\InteractionExports.cs (1)
631internal MessageBoxInteractionOptions ToOptions()
IInteractionService.cs (3)
40Task<InteractionResult<bool>> PromptConfirmationAsync(string title, string message, MessageBoxInteractionOptions? options = null, CancellationToken cancellationToken = default); 52Task<InteractionResult<bool>> PromptMessageBoxAsync(string title, string message, MessageBoxInteractionOptions? options = null, CancellationToken cancellationToken = default); 954internal static MessageBoxInteractionOptions CreateDefault() => new();
InteractionService.cs (6)
101public async Task<InteractionResult<bool>> PromptConfirmationAsync(string title, string message, MessageBoxInteractionOptions? options = null, CancellationToken cancellationToken = default) 103options ??= MessageBoxInteractionOptions.CreateDefault(); 111public async Task<InteractionResult<bool>> PromptMessageBoxAsync(string title, string message, MessageBoxInteractionOptions? options = null, CancellationToken cancellationToken = default) 113options ??= MessageBoxInteractionOptions.CreateDefault(); 120private async Task<InteractionResult<bool>> PromptMessageBoxCoreAsync(string title, string message, MessageBoxInteractionOptions options, CancellationToken cancellationToken) 129options ??= MessageBoxInteractionOptions.CreateDefault();
Aspire.Hosting.Azure.Tests (2)
tests\Shared\TestInteractionService.cs (2)
33public Task<InteractionResult<bool>> PromptConfirmationAsync(string title, string message, MessageBoxInteractionOptions? options = null, CancellationToken cancellationToken = default) 73public async Task<InteractionResult<bool>> PromptMessageBoxAsync(string title, string message, MessageBoxInteractionOptions? options = null, CancellationToken cancellationToken = default)
Aspire.Hosting.Browsers.Tests (2)
tests\Shared\TestInteractionService.cs (2)
33public Task<InteractionResult<bool>> PromptConfirmationAsync(string title, string message, MessageBoxInteractionOptions? options = null, CancellationToken cancellationToken = default) 73public async Task<InteractionResult<bool>> PromptMessageBoxAsync(string title, string message, MessageBoxInteractionOptions? options = null, CancellationToken cancellationToken = default)
Aspire.Hosting.DevTunnels.Tests (4)
DevTunnelResourceBuilderExtensionsTests.cs (2)
618var options = Assert.IsType<MessageBoxInteractionOptions>(interaction.Options);
tests\Shared\TestInteractionService.cs (2)
33public Task<InteractionResult<bool>> PromptConfirmationAsync(string title, string message, MessageBoxInteractionOptions? options = null, CancellationToken cancellationToken = default) 73public async Task<InteractionResult<bool>> PromptMessageBoxAsync(string title, string message, MessageBoxInteractionOptions? options = null, CancellationToken cancellationToken = default)
Aspire.Hosting.RemoteHost.Tests (2)
tests\Shared\TestInteractionService.cs (2)
33public Task<InteractionResult<bool>> PromptConfirmationAsync(string title, string message, MessageBoxInteractionOptions? options = null, CancellationToken cancellationToken = default) 73public async Task<InteractionResult<bool>> PromptMessageBoxAsync(string title, string message, MessageBoxInteractionOptions? options = null, CancellationToken cancellationToken = default)
Aspire.Hosting.Tests (2)
tests\Shared\TestInteractionService.cs (2)
33public Task<InteractionResult<bool>> PromptConfirmationAsync(string title, string message, MessageBoxInteractionOptions? options = null, CancellationToken cancellationToken = default) 73public async Task<InteractionResult<bool>> PromptMessageBoxAsync(string title, string message, MessageBoxInteractionOptions? options = null, CancellationToken cancellationToken = default)