2 instantiations of InteractionResult
Aspire.Hosting (2)
IInteractionService.cs (2)
480
return new
InteractionResult
<T>(result, canceled: false);
495
return new
InteractionResult
<T>(data ?? default, canceled: true);
70 references to InteractionResult
Aspire.Hosting (30)
IInteractionService.cs (19)
33
/// An <see cref="
InteractionResult
{T}"/> containing <c>true</c> if the user confirmed, <c>false</c> otherwise.
35
Task<
InteractionResult
<bool>> PromptConfirmationAsync(string title, string message, MessageBoxInteractionOptions? options = null, CancellationToken cancellationToken = default);
45
/// An <see cref="
InteractionResult
{T}"/> containing <c>true</c> if the user accepted, <c>false</c> otherwise.
47
Task<
InteractionResult
<bool>> PromptMessageBoxAsync(string title, string message, MessageBoxInteractionOptions? options = null, CancellationToken cancellationToken = default);
59
/// An <see cref="
InteractionResult
{T}"/> containing the user's input.
61
Task<
InteractionResult
<InteractionInput>> PromptInputAsync(string title, string? message, string inputLabel, string placeHolder, InputsDialogInteractionOptions? options = null, CancellationToken cancellationToken = default);
72
/// An <see cref="
InteractionResult
{T}"/> containing the user's input.
74
Task<
InteractionResult
<InteractionInput>> PromptInputAsync(string title, string? message, InteractionInput input, InputsDialogInteractionOptions? options = null, CancellationToken cancellationToken = default);
85
/// An <see cref="
InteractionResult
{T}"/> containing the user's inputs as an <see cref="InteractionInputCollection"/>.
87
Task<
InteractionResult
<InteractionInputCollection>> PromptInputsAsync(string title, string? message, IReadOnlyList<InteractionInput> inputs, InputsDialogInteractionOptions? options = null, CancellationToken cancellationToken = default);
97
/// An <see cref="
InteractionResult
{T}"/> containing <c>true</c> if the user accepted, <c>false</c> otherwise.
99
Task<
InteractionResult
<bool>> PromptNotificationAsync(string title, string message, NotificationInteractionOptions? options = null, CancellationToken cancellationToken = default);
468
/// Provides a set of static methods for the <see cref="
InteractionResult
{T}"/>.
473
/// Creates a new <see cref="
InteractionResult
{T}"/> with the specified result and a flag indicating that the interaction was not canceled.
477
/// <returns>The new <see cref="
InteractionResult
{T}"/>.</returns>
478
public static
InteractionResult
<T> Ok<T>(T result)
484
/// Creates an <see cref="
InteractionResult
{T}"/> indicating a canceled interaction.
490
/// An <see cref="
InteractionResult
{T}"/> with the <c>canceled</c> flag set to <see langword="true"/> and containing
493
public static
InteractionResult
<T> Cancel<T>(T? data = default)
InteractionService.cs (8)
35
public async Task<
InteractionResult
<bool>> PromptConfirmationAsync(string title, string message, MessageBoxInteractionOptions? options = null, CancellationToken cancellationToken = default)
45
public async Task<
InteractionResult
<bool>> PromptMessageBoxAsync(string title, string message, MessageBoxInteractionOptions? options = null, CancellationToken cancellationToken = default)
54
private async Task<
InteractionResult
<bool>> PromptMessageBoxCoreAsync(string title, string message, MessageBoxInteractionOptions options, CancellationToken cancellationToken)
75
public async Task<
InteractionResult
<InteractionInput>> PromptInputAsync(string title, string? message, string inputLabel, string placeHolder, InputsDialogInteractionOptions? options = null, CancellationToken cancellationToken = default)
80
public async Task<
InteractionResult
<InteractionInput>> PromptInputAsync(string title, string? message, InteractionInput input, InputsDialogInteractionOptions? options = null, CancellationToken cancellationToken = default)
82
var
result = await PromptInputsAsync(title, message, [input], options, cancellationToken).ConfigureAwait(false);
91
public async Task<
InteractionResult
<InteractionInputCollection>> PromptInputsAsync(string title, string? message, IReadOnlyList<InteractionInput> inputs, InputsDialogInteractionOptions? options = null, CancellationToken cancellationToken = default)
114
public async Task<
InteractionResult
<bool>> PromptNotificationAsync(string title, string message, NotificationInteractionOptions? options = null, CancellationToken cancellationToken = default)
Orchestrator\ParameterProcessor.cs (2)
130
var
result = await interactionService.PromptNotificationAsync(
159
var
valuesPrompt = await interactionService.PromptInputsAsync(
VersionChecking\VersionCheckService.cs (1)
136
var
result = await _interactionService.PromptNotificationAsync(
Aspire.Hosting.Azure (2)
Provisioning\Internal\DefaultProvisioningContextProvider.cs (2)
84
var
messageBarResult = await interactionService.PromptNotificationAsync(
104
var
result = await interactionService.PromptInputsAsync(
Aspire.Hosting.Azure.Tests (9)
tests\Shared\TestInteractionService.cs (9)
18
public Task<
InteractionResult
<bool>> PromptConfirmationAsync(string title, string message, MessageBoxInteractionOptions? options = null, CancellationToken cancellationToken = default)
23
public Task<
InteractionResult
<InteractionInput>> PromptInputAsync(string title, string? message, string inputLabel, string placeHolder, InputsDialogInteractionOptions? options = null, CancellationToken cancellationToken = default)
28
public Task<
InteractionResult
<InteractionInput>> PromptInputAsync(string title, string? message, InteractionInput input, InputsDialogInteractionOptions? options = null, CancellationToken cancellationToken = default)
33
public async Task<
InteractionResult
<InteractionInputCollection>> PromptInputsAsync(string title, string? message, IReadOnlyList<InteractionInput> inputs, InputsDialogInteractionOptions? options = null, CancellationToken cancellationToken = default)
37
var
result = (
InteractionResult
<InteractionInputCollection>)await data.CompletionTcs.Task;
48
public async Task<
InteractionResult
<bool>> PromptNotificationAsync(string title, string message, NotificationInteractionOptions? options = null, CancellationToken cancellationToken = default)
52
return (
InteractionResult
<bool>)await data.CompletionTcs.Task;
55
public Task<
InteractionResult
<bool>> PromptMessageBoxAsync(string title, string message, MessageBoxInteractionOptions? options = null, CancellationToken cancellationToken = default)
Aspire.Hosting.Tests (19)
Dashboard\DashboardServiceTests.cs (1)
381
var
result = await resultTask.DefaultTimeout();
InteractionServiceTests.cs (7)
32
var
result = await resultTask.DefaultTimeout();
57
var
result = await resultTask.DefaultTimeout();
96
var
result1 = await resultTask1.DefaultTimeout();
104
var
result2 = await resultTask2.DefaultTimeout();
110
var
result3 = await resultTask3.DefaultTimeout();
644
var
result = await resultTask.DefaultTimeout();
703
var
result = await resultTask.DefaultTimeout();
Publishing\PublishingActivityReporterTests.cs (2)
490
var
promptResult = await promptTask.DefaultTimeout();
530
var
notificationResult = await notificationTask.DefaultTimeout();
tests\Shared\TestInteractionService.cs (9)
18
public Task<
InteractionResult
<bool>> PromptConfirmationAsync(string title, string message, MessageBoxInteractionOptions? options = null, CancellationToken cancellationToken = default)
23
public Task<
InteractionResult
<InteractionInput>> PromptInputAsync(string title, string? message, string inputLabel, string placeHolder, InputsDialogInteractionOptions? options = null, CancellationToken cancellationToken = default)
28
public Task<
InteractionResult
<InteractionInput>> PromptInputAsync(string title, string? message, InteractionInput input, InputsDialogInteractionOptions? options = null, CancellationToken cancellationToken = default)
33
public async Task<
InteractionResult
<InteractionInputCollection>> PromptInputsAsync(string title, string? message, IReadOnlyList<InteractionInput> inputs, InputsDialogInteractionOptions? options = null, CancellationToken cancellationToken = default)
37
var
result = (
InteractionResult
<InteractionInputCollection>)await data.CompletionTcs.Task;
48
public async Task<
InteractionResult
<bool>> PromptNotificationAsync(string title, string message, NotificationInteractionOptions? options = null, CancellationToken cancellationToken = default)
52
return (
InteractionResult
<bool>)await data.CompletionTcs.Task;
55
public Task<
InteractionResult
<bool>> PromptMessageBoxAsync(string title, string message, MessageBoxInteractionOptions? options = null, CancellationToken cancellationToken = default)
Publishers.AppHost (7)
DistributedApplicationBuilderExtensions.cs (7)
33
var
multiInputResult = await interactionService.PromptInputsAsync(
96
var
envResult = await interactionService.PromptInputAsync(
119
var
dbPasswordResult = await interactionService.PromptInputAsync(
134
var
regionResult = await interactionService.PromptInputAsync(
155
var
enableLoggingResult = await interactionService.PromptInputAsync(
169
var
instanceCountResult = await interactionService.PromptInputAsync(
184
var
deployModeResult = await interactionService.PromptInputAsync(
Stress.AppHost (3)
InteractionCommands.cs (3)
69
var
result = await interactionService.PromptInputAsync(
141
var
result = await interactionService.PromptInputsAsync(
228
var
result = await interactionService.PromptInputsAsync(