12 instantiations of MessageBoxInteractionOptions
Aspire.Hosting (2)
Ats\InteractionExports.cs (1)
633
return new
MessageBoxInteractionOptions
IInteractionService.cs (1)
881
internal static MessageBoxInteractionOptions CreateDefault() =>
new
();
Aspire.Hosting.Azure.Kusto (1)
AzureKustoBuilderExtensions.cs (1)
416
new
MessageBoxInteractionOptions
Aspire.Hosting.DevTunnels (1)
DevTunnelResourceBuilderExtensions.cs (1)
821
new
MessageBoxInteractionOptions
Aspire.Hosting.EntityFrameworkCore (1)
EFResourceBuilderExtensions.cs (1)
1014
options: new
MessageBoxInteractionOptions
Stress.AppHost (7)
InteractionCommands.cs (7)
21
var 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 });
540
options: new
MessageBoxInteractionOptions
{ ShowDismiss = showDismiss },
548
options: new
MessageBoxInteractionOptions
{ ShowDismiss = showDismiss },
22 references to MessageBoxInteractionOptions
Aspire.Hosting (10)
Ats\InteractionExports.cs (1)
631
internal
MessageBoxInteractionOptions
ToOptions()
IInteractionService.cs (3)
34
Task<InteractionResult<bool>> PromptConfirmationAsync(string title, string message,
MessageBoxInteractionOptions
? options = null, CancellationToken cancellationToken = default);
46
Task<InteractionResult<bool>> PromptMessageBoxAsync(string title, string message,
MessageBoxInteractionOptions
? options = null, CancellationToken cancellationToken = default);
881
internal static
MessageBoxInteractionOptions
CreateDefault() => new();
InteractionService.cs (6)
90
public async Task<InteractionResult<bool>> PromptConfirmationAsync(string title, string message,
MessageBoxInteractionOptions
? options = null, CancellationToken cancellationToken = default)
92
options ??=
MessageBoxInteractionOptions
.CreateDefault();
100
public async Task<InteractionResult<bool>> PromptMessageBoxAsync(string title, string message,
MessageBoxInteractionOptions
? options = null, CancellationToken cancellationToken = default)
102
options ??=
MessageBoxInteractionOptions
.CreateDefault();
109
private async Task<InteractionResult<bool>> PromptMessageBoxCoreAsync(string title, string message,
MessageBoxInteractionOptions
options, CancellationToken cancellationToken)
118
options ??=
MessageBoxInteractionOptions
.CreateDefault();
Aspire.Hosting.Azure.Tests (2)
tests\Shared\TestInteractionService.cs (2)
27
public Task<InteractionResult<bool>> PromptConfirmationAsync(string title, string message,
MessageBoxInteractionOptions
? options = null, CancellationToken cancellationToken = default)
67
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)
27
public Task<InteractionResult<bool>> PromptConfirmationAsync(string title, string message,
MessageBoxInteractionOptions
? options = null, CancellationToken cancellationToken = default)
67
public async Task<InteractionResult<bool>> PromptMessageBoxAsync(string title, string message,
MessageBoxInteractionOptions
? options = null, CancellationToken cancellationToken = default)
Aspire.Hosting.DevTunnels.Tests (4)
DevTunnelResourceBuilderExtensionsTests.cs (2)
477
var
options = Assert.IsType<
MessageBoxInteractionOptions
>(interaction.Options);
tests\Shared\TestInteractionService.cs (2)
27
public Task<InteractionResult<bool>> PromptConfirmationAsync(string title, string message,
MessageBoxInteractionOptions
? options = null, CancellationToken cancellationToken = default)
67
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)
27
public Task<InteractionResult<bool>> PromptConfirmationAsync(string title, string message,
MessageBoxInteractionOptions
? options = null, CancellationToken cancellationToken = default)
67
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)
27
public Task<InteractionResult<bool>> PromptConfirmationAsync(string title, string message,
MessageBoxInteractionOptions
? options = null, CancellationToken cancellationToken = default)
67
public async Task<InteractionResult<bool>> PromptMessageBoxAsync(string title, string message,
MessageBoxInteractionOptions
? options = null, CancellationToken cancellationToken = default)