12 instantiations of MessageBoxInteractionOptions
Aspire.Hosting (2)
Ats\InteractionExports.cs (1)
633return new MessageBoxInteractionOptions
IInteractionService.cs (1)
944internal static MessageBoxInteractionOptions CreateDefault() => new();
Aspire.Hosting.Azure.Kusto (1)
AzureKustoBuilderExtensions.cs (1)
416new MessageBoxInteractionOptions
Aspire.Hosting.DevTunnels (1)
DevTunnelResourceBuilderExtensions.cs (1)
869new MessageBoxInteractionOptions
Aspire.Hosting.EntityFrameworkCore (1)
EFResourceBuilderExtensions.cs (1)
1098options: new MessageBoxInteractionOptions
Stress.AppHost (7)
InteractionCommands.cs (7)
21var 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!" }); 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 }); 621options: new MessageBoxInteractionOptions { ShowDismiss = showDismiss }, 629options: new MessageBoxInteractionOptions { ShowDismiss = showDismiss },
22 references to MessageBoxInteractionOptions
Aspire.Hosting (10)
Ats\InteractionExports.cs (1)
631internal MessageBoxInteractionOptions ToOptions()
IInteractionService.cs (3)
35Task<InteractionResult<bool>> PromptConfirmationAsync(string title, string message, MessageBoxInteractionOptions? options = null, CancellationToken cancellationToken = default); 47Task<InteractionResult<bool>> PromptMessageBoxAsync(string title, string message, MessageBoxInteractionOptions? options = null, CancellationToken cancellationToken = default); 944internal static MessageBoxInteractionOptions CreateDefault() => new();
InteractionService.cs (6)
94public async Task<InteractionResult<bool>> PromptConfirmationAsync(string title, string message, MessageBoxInteractionOptions? options = null, CancellationToken cancellationToken = default) 96options ??= MessageBoxInteractionOptions.CreateDefault(); 104public async Task<InteractionResult<bool>> PromptMessageBoxAsync(string title, string message, MessageBoxInteractionOptions? options = null, CancellationToken cancellationToken = default) 106options ??= MessageBoxInteractionOptions.CreateDefault(); 113private async Task<InteractionResult<bool>> PromptMessageBoxCoreAsync(string title, string message, MessageBoxInteractionOptions options, CancellationToken cancellationToken) 122options ??= 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)
581var 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)