13 instantiations of MessageBoxInteractionOptions
Aspire.Hosting (2)
Ats\InteractionExports.cs (1)
633
return new
MessageBoxInteractionOptions
IInteractionService.cs (1)
954
internal static MessageBoxInteractionOptions CreateDefault() =>
new
();
Aspire.Hosting.Azure.Kusto (1)
AzureKustoBuilderExtensions.cs (1)
437
new
MessageBoxInteractionOptions
Aspire.Hosting.DevTunnels (1)
DevTunnelResourceBuilderExtensions.cs (1)
876
new
MessageBoxInteractionOptions
Aspire.Hosting.EntityFrameworkCore (1)
EFResourceBuilderExtensions.cs (1)
1093
options: new
MessageBoxInteractionOptions
Stress.AppHost (8)
InteractionCommands.cs (8)
22
var 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 });
637
options: new
MessageBoxInteractionOptions
{ ShowDismiss = showDismiss },
645
options: new
MessageBoxInteractionOptions
{ ShowDismiss = showDismiss },
22 references to MessageBoxInteractionOptions
Aspire.Hosting (10)
Ats\InteractionExports.cs (1)
631
internal
MessageBoxInteractionOptions
ToOptions()
IInteractionService.cs (3)
40
Task<InteractionResult<bool>> PromptConfirmationAsync(string title, string message,
MessageBoxInteractionOptions
? options = null, CancellationToken cancellationToken = default);
52
Task<InteractionResult<bool>> PromptMessageBoxAsync(string title, string message,
MessageBoxInteractionOptions
? options = null, CancellationToken cancellationToken = default);
954
internal static
MessageBoxInteractionOptions
CreateDefault() => new();
InteractionService.cs (6)
101
public async Task<InteractionResult<bool>> PromptConfirmationAsync(string title, string message,
MessageBoxInteractionOptions
? options = null, CancellationToken cancellationToken = default)
103
options ??=
MessageBoxInteractionOptions
.CreateDefault();
111
public async Task<InteractionResult<bool>> PromptMessageBoxAsync(string title, string message,
MessageBoxInteractionOptions
? options = null, CancellationToken cancellationToken = default)
113
options ??=
MessageBoxInteractionOptions
.CreateDefault();
120
private async Task<InteractionResult<bool>> PromptMessageBoxCoreAsync(string title, string message,
MessageBoxInteractionOptions
options, CancellationToken cancellationToken)
129
options ??=
MessageBoxInteractionOptions
.CreateDefault();
Aspire.Hosting.Azure.Tests (2)
tests\Shared\TestInteractionService.cs (2)
33
public Task<InteractionResult<bool>> PromptConfirmationAsync(string title, string message,
MessageBoxInteractionOptions
? options = null, CancellationToken cancellationToken = default)
73
public 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)
33
public Task<InteractionResult<bool>> PromptConfirmationAsync(string title, string message,
MessageBoxInteractionOptions
? options = null, CancellationToken cancellationToken = default)
73
public async Task<InteractionResult<bool>> PromptMessageBoxAsync(string title, string message,
MessageBoxInteractionOptions
? options = null, CancellationToken cancellationToken = default)
Aspire.Hosting.DevTunnels.Tests (4)
DevTunnelResourceBuilderExtensionsTests.cs (2)
618
var
options = Assert.IsType<
MessageBoxInteractionOptions
>(interaction.Options);
tests\Shared\TestInteractionService.cs (2)
33
public Task<InteractionResult<bool>> PromptConfirmationAsync(string title, string message,
MessageBoxInteractionOptions
? options = null, CancellationToken cancellationToken = default)
73
public 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)
33
public Task<InteractionResult<bool>> PromptConfirmationAsync(string title, string message,
MessageBoxInteractionOptions
? options = null, CancellationToken cancellationToken = default)
73
public async Task<InteractionResult<bool>> PromptMessageBoxAsync(string title, string message,
MessageBoxInteractionOptions
? options = null, CancellationToken cancellationToken = default)
Aspire.Hosting.Tests (2)
tests\Shared\TestInteractionService.cs (2)
33
public Task<InteractionResult<bool>> PromptConfirmationAsync(string title, string message,
MessageBoxInteractionOptions
? options = null, CancellationToken cancellationToken = default)
73
public async Task<InteractionResult<bool>> PromptMessageBoxAsync(string title, string message,
MessageBoxInteractionOptions
? options = null, CancellationToken cancellationToken = default)