2 instantiations of InteractionResult
Aspire.Hosting (2)
IInteractionService.cs (2)
1029
return new
InteractionResult
<T>(result, canceled: false);
1044
return new
InteractionResult
<T>(data ?? default, canceled: true);
176 references to InteractionResult
Aspire.Hosting (49)
ApplicationModel\ResourceCommandService.cs (2)
458
var
progressResult = await interactionService.PromptProgressAsync(progressOptions.Message, options: options, cancellationToken: cancellationToken).ConfigureAwait(false);
710
var
result = await interactionService.PromptInputsAsync(
Ats\InteractionExports.cs (9)
63
var
result = await interactionService.PromptConfirmationAsync(title, message, options?.ToOptions(), cancellationToken).ConfigureAwait(false);
80
var
result = await interactionService.PromptMessageBoxAsync(title, message, options?.ToOptions(), cancellationToken).ConfigureAwait(false);
97
var
result = await interactionService.PromptNotificationAsync(title, message, options?.ToOptions(), cancellationToken).ConfigureAwait(false);
115
var
result = await interactionService.PromptProgressAsync(message, options?.ToOptions(), cancellationToken).ConfigureAwait(false);
136
var
result = await interactionService.PromptInputAsync(title, message, input.Input, options?.ToOptions(), cancellationToken).ConfigureAwait(false);
164
var
result = await interactionService.PromptInputsAsync(title, message, interactionInputs, options?.ToOptions(), cancellationToken).ConfigureAwait(false);
814
internal static BoolInteractionResult From(
InteractionResult
<bool> result)
840
internal static InputInteractionResult From(
InteractionResult
<InteractionInput> result)
872
internal static InputsInteractionResult From(
InteractionResult
<InteractionInputCollection> result)
IInteractionService.cs (21)
32
/// An <see cref="
InteractionResult
{T}"/> containing <c>true</c> if the user confirmed, <c>false</c> otherwise.
34
Task<
InteractionResult
<bool>> PromptConfirmationAsync(string title, string message, MessageBoxInteractionOptions? options = null, CancellationToken cancellationToken = default);
44
/// An <see cref="
InteractionResult
{T}"/> containing <c>true</c> if the user accepted, <c>false</c> otherwise.
46
Task<
InteractionResult
<bool>> PromptMessageBoxAsync(string title, string message, MessageBoxInteractionOptions? options = null, CancellationToken cancellationToken = default);
58
/// An <see cref="
InteractionResult
{T}"/> containing the user's input.
60
Task<
InteractionResult
<InteractionInput>> PromptInputAsync(string title, string? message, string inputLabel, string placeHolder, InputsDialogInteractionOptions? options = null, CancellationToken cancellationToken = default);
71
/// An <see cref="
InteractionResult
{T}"/> containing the user's input.
73
Task<
InteractionResult
<InteractionInput>> PromptInputAsync(string title, string? message, InteractionInput input, InputsDialogInteractionOptions? options = null, CancellationToken cancellationToken = default);
84
/// An <see cref="
InteractionResult
{T}"/> containing the user's inputs as an <see cref="InteractionInputCollection"/>.
86
Task<
InteractionResult
<InteractionInputCollection>> PromptInputsAsync(string title, string? message, IReadOnlyList<InteractionInput> inputs, InputsDialogInteractionOptions? options = null, CancellationToken cancellationToken = default);
96
/// An <see cref="
InteractionResult
{T}"/> containing <c>true</c> if the user accepted, <c>false</c> otherwise.
98
Task<
InteractionResult
<bool>> PromptNotificationAsync(string title, string message, NotificationInteractionOptions? options = null, CancellationToken cancellationToken = default);
121
/// An <see cref="
InteractionResult
{T}"/> containing <c>true</c> if the operation completed successfully,
125
Task<
InteractionResult
<bool>> PromptProgressAsync(string message, ProgressInteractionOptions? options = null, CancellationToken cancellationToken = default);
1017
/// Provides a set of static methods for the <see cref="
InteractionResult
{T}"/>.
1022
/// Creates a new <see cref="
InteractionResult
{T}"/> with the specified result and a flag indicating that the interaction was not canceled.
1026
/// <returns>The new <see cref="
InteractionResult
{T}"/>.</returns>
1027
public static
InteractionResult
<T> Ok<T>(T result)
1033
/// Creates an <see cref="
InteractionResult
{T}"/> indicating a canceled interaction.
1039
/// An <see cref="
InteractionResult
{T}"/> with the <c>canceled</c> flag set to <see langword="true"/> and containing
1042
public static
InteractionResult
<T> Cancel<T>(T? data = default)
InteractionService.cs (10)
90
public async Task<
InteractionResult
<bool>> PromptConfirmationAsync(string title, string message, MessageBoxInteractionOptions? options = null, CancellationToken cancellationToken = default)
100
public async Task<
InteractionResult
<bool>> PromptMessageBoxAsync(string title, string message, MessageBoxInteractionOptions? options = null, CancellationToken cancellationToken = default)
109
private async Task<
InteractionResult
<bool>> PromptMessageBoxCoreAsync(string title, string message, MessageBoxInteractionOptions options, CancellationToken cancellationToken)
138
public async Task<
InteractionResult
<InteractionInput>> PromptInputAsync(string title, string? message, string inputLabel, string placeHolder, InputsDialogInteractionOptions? options = null, CancellationToken cancellationToken = default)
143
public async Task<
InteractionResult
<InteractionInput>> PromptInputAsync(string title, string? message, InteractionInput input, InputsDialogInteractionOptions? options = null, CancellationToken cancellationToken = default)
145
var
result = await PromptInputsAsync(title, message, [input], options, cancellationToken).ConfigureAwait(false);
154
public async Task<
InteractionResult
<InteractionInputCollection>> PromptInputsAsync(string title, string? message, IReadOnlyList<InteractionInput> inputs, InputsDialogInteractionOptions? options = null, CancellationToken cancellationToken = default)
263
public async Task<
InteractionResult
<bool>> PromptNotificationAsync(string title, string message, NotificationInteractionOptions? options = null, CancellationToken cancellationToken = default)
291
public async Task<
InteractionResult
<bool>> PromptProgressAsync(string message, ProgressInteractionOptions? options = null, CancellationToken cancellationToken = default)
381
private static
InteractionResult
<bool> CreateProgressResult(InteractionCompletionState completion)
Orchestrator\ParameterProcessor.cs (4)
353
var
result = await interactionService.PromptInputsAsync(
392
var
result = await interactionService.PromptInputsAsync(
563
var
result = await interactionService.PromptNotificationAsync(
614
var
valuesPrompt = await interactionService.PromptInputsAsync(
Pipelines\DistributedApplicationPipeline.cs (2)
92
var
result = await interactionService.PromptNotificationAsync(
176
var
result = await interactionService.PromptNotificationAsync(
VersionChecking\VersionCheckService.cs (1)
149
var
result = await _interactionService.PromptNotificationAsync(
Aspire.Hosting.Azure (10)
AzureEnvironmentResource.cs (1)
337
var
result = await interactionService.PromptNotificationAsync(
AzureProvisioningController.cs (2)
672
var
result = await interactionService.PromptInputsAsync(
1667
var
notificationResult = await interactionService.PromptNotificationAsync(
Provisioning\Internal\PublishModeProvisioningContextProvider.cs (6)
154
var
result = await _interactionService.PromptInputsAsync(
180
var
manualResult = await _interactionService.PromptInputsAsync(
253
var
result = await _interactionService.PromptInputsAsync(
279
var
manualResult = await _interactionService.PromptInputsAsync(
364
var
resourceGroupResult = await _interactionService.PromptInputsAsync(
445
var
locationResult = await _interactionService.PromptInputsAsync(
Provisioning\Internal\RunModeProvisioningContextProvider.cs (1)
279
var
result = await _interactionService.PromptInputsAsync(
Aspire.Hosting.Azure.Tests (13)
tests\Shared\TestInteractionService.cs (13)
27
public Task<
InteractionResult
<bool>> PromptConfirmationAsync(string title, string message, MessageBoxInteractionOptions? options = null, CancellationToken cancellationToken = default)
32
public Task<
InteractionResult
<InteractionInput>> PromptInputAsync(string title, string? message, string inputLabel, string placeHolder, InputsDialogInteractionOptions? options = null, CancellationToken cancellationToken = default)
37
public async Task<
InteractionResult
<InteractionInput>> PromptInputAsync(string title, string? message, InteractionInput input, InputsDialogInteractionOptions? options = null, CancellationToken cancellationToken = default)
41
var
result = (
InteractionResult
<InteractionInput>)await data.CompletionTcs.Task;
45
public async Task<
InteractionResult
<InteractionInputCollection>> PromptInputsAsync(string title, string? message, IReadOnlyList<InteractionInput> inputs, InputsDialogInteractionOptions? options = null, CancellationToken cancellationToken = default)
49
var
result = (
InteractionResult
<InteractionInputCollection>)await data.CompletionTcs.Task;
60
public async Task<
InteractionResult
<bool>> PromptNotificationAsync(string title, string message, NotificationInteractionOptions? options = null, CancellationToken cancellationToken = default)
64
return (
InteractionResult
<bool>)await data.CompletionTcs.Task;
67
public async Task<
InteractionResult
<bool>> PromptMessageBoxAsync(string title, string message, MessageBoxInteractionOptions? options = null, CancellationToken cancellationToken = default)
71
return (
InteractionResult
<bool>)await data.CompletionTcs.Task;
76
public async Task<
InteractionResult
<bool>> PromptProgressAsync(string message, ProgressInteractionOptions? options = null, CancellationToken cancellationToken = default)
Aspire.Hosting.Browsers.Tests (13)
tests\Shared\TestInteractionService.cs (13)
27
public Task<
InteractionResult
<bool>> PromptConfirmationAsync(string title, string message, MessageBoxInteractionOptions? options = null, CancellationToken cancellationToken = default)
32
public Task<
InteractionResult
<InteractionInput>> PromptInputAsync(string title, string? message, string inputLabel, string placeHolder, InputsDialogInteractionOptions? options = null, CancellationToken cancellationToken = default)
37
public async Task<
InteractionResult
<InteractionInput>> PromptInputAsync(string title, string? message, InteractionInput input, InputsDialogInteractionOptions? options = null, CancellationToken cancellationToken = default)
41
var
result = (
InteractionResult
<InteractionInput>)await data.CompletionTcs.Task;
45
public async Task<
InteractionResult
<InteractionInputCollection>> PromptInputsAsync(string title, string? message, IReadOnlyList<InteractionInput> inputs, InputsDialogInteractionOptions? options = null, CancellationToken cancellationToken = default)
49
var
result = (
InteractionResult
<InteractionInputCollection>)await data.CompletionTcs.Task;
60
public async Task<
InteractionResult
<bool>> PromptNotificationAsync(string title, string message, NotificationInteractionOptions? options = null, CancellationToken cancellationToken = default)
64
return (
InteractionResult
<bool>)await data.CompletionTcs.Task;
67
public async Task<
InteractionResult
<bool>> PromptMessageBoxAsync(string title, string message, MessageBoxInteractionOptions? options = null, CancellationToken cancellationToken = default)
71
return (
InteractionResult
<bool>)await data.CompletionTcs.Task;
76
public async Task<
InteractionResult
<bool>> PromptProgressAsync(string message, ProgressInteractionOptions? options = null, CancellationToken cancellationToken = default)
Aspire.Hosting.DevTunnels (1)
DevTunnelLoginManager.cs (1)
56
var
result = await _interactionService.PromptNotificationAsync(
Aspire.Hosting.DevTunnels.Tests (13)
tests\Shared\TestInteractionService.cs (13)
27
public Task<
InteractionResult
<bool>> PromptConfirmationAsync(string title, string message, MessageBoxInteractionOptions? options = null, CancellationToken cancellationToken = default)
32
public Task<
InteractionResult
<InteractionInput>> PromptInputAsync(string title, string? message, string inputLabel, string placeHolder, InputsDialogInteractionOptions? options = null, CancellationToken cancellationToken = default)
37
public async Task<
InteractionResult
<InteractionInput>> PromptInputAsync(string title, string? message, InteractionInput input, InputsDialogInteractionOptions? options = null, CancellationToken cancellationToken = default)
41
var
result = (
InteractionResult
<InteractionInput>)await data.CompletionTcs.Task;
45
public async Task<
InteractionResult
<InteractionInputCollection>> PromptInputsAsync(string title, string? message, IReadOnlyList<InteractionInput> inputs, InputsDialogInteractionOptions? options = null, CancellationToken cancellationToken = default)
49
var
result = (
InteractionResult
<InteractionInputCollection>)await data.CompletionTcs.Task;
60
public async Task<
InteractionResult
<bool>> PromptNotificationAsync(string title, string message, NotificationInteractionOptions? options = null, CancellationToken cancellationToken = default)
64
return (
InteractionResult
<bool>)await data.CompletionTcs.Task;
67
public async Task<
InteractionResult
<bool>> PromptMessageBoxAsync(string title, string message, MessageBoxInteractionOptions? options = null, CancellationToken cancellationToken = default)
71
return (
InteractionResult
<bool>)await data.CompletionTcs.Task;
76
public async Task<
InteractionResult
<bool>> PromptProgressAsync(string message, ProgressInteractionOptions? options = null, CancellationToken cancellationToken = default)
Aspire.Hosting.Docker (1)
DockerComposeEnvironmentResource.cs (1)
497
var
result = await interactionService.PromptNotificationAsync(
Aspire.Hosting.Kubernetes (1)
Deployment\HelmDeploymentEngine.cs (1)
648
var
result = await interactionService.PromptNotificationAsync(
Aspire.Hosting.RemoteHost.Tests (13)
tests\Shared\TestInteractionService.cs (13)
27
public Task<
InteractionResult
<bool>> PromptConfirmationAsync(string title, string message, MessageBoxInteractionOptions? options = null, CancellationToken cancellationToken = default)
32
public Task<
InteractionResult
<InteractionInput>> PromptInputAsync(string title, string? message, string inputLabel, string placeHolder, InputsDialogInteractionOptions? options = null, CancellationToken cancellationToken = default)
37
public async Task<
InteractionResult
<InteractionInput>> PromptInputAsync(string title, string? message, InteractionInput input, InputsDialogInteractionOptions? options = null, CancellationToken cancellationToken = default)
41
var
result = (
InteractionResult
<InteractionInput>)await data.CompletionTcs.Task;
45
public async Task<
InteractionResult
<InteractionInputCollection>> PromptInputsAsync(string title, string? message, IReadOnlyList<InteractionInput> inputs, InputsDialogInteractionOptions? options = null, CancellationToken cancellationToken = default)
49
var
result = (
InteractionResult
<InteractionInputCollection>)await data.CompletionTcs.Task;
60
public async Task<
InteractionResult
<bool>> PromptNotificationAsync(string title, string message, NotificationInteractionOptions? options = null, CancellationToken cancellationToken = default)
64
return (
InteractionResult
<bool>)await data.CompletionTcs.Task;
67
public async Task<
InteractionResult
<bool>> PromptMessageBoxAsync(string title, string message, MessageBoxInteractionOptions? options = null, CancellationToken cancellationToken = default)
71
return (
InteractionResult
<bool>)await data.CompletionTcs.Task;
76
public async Task<
InteractionResult
<bool>> PromptProgressAsync(string message, ProgressInteractionOptions? options = null, CancellationToken cancellationToken = default)
Aspire.Hosting.Tests (40)
Dashboard\DashboardServiceTests.cs (3)
630
var
result = await resultTask.DefaultTimeout();
1098
var
result = await resultTask;
1138
var
result = await resultTask;
InteractionServiceTests.cs (19)
37
var
result = await resultTask.DefaultTimeout();
62
var
result = await resultTask.DefaultTimeout();
101
var
result1 = await resultTask1.DefaultTimeout();
109
var
result2 = await resultTask2.DefaultTimeout();
115
var
result3 = await resultTask3.DefaultTimeout();
456
var
result = await resultTask.DefaultTimeout();
874
var
result = await resultTask.DefaultTimeout();
1056
var
result = await resultTask.DefaultTimeout();
1135
var
result = await interactionService.PromptProgressAsync("Please wait", new ProgressInteractionOptions
1176
var
result = await resultTask.DefaultTimeout();
1212
var
result = await resultTask.DefaultTimeout();
1246
var
result = await resultTask.DefaultTimeout();
1266
var
result = await resultTask.DefaultTimeout();
1287
var
result = await resultTask.DefaultTimeout();
1364
var
result = await resultTask;
1392
var
result = await resultTask;
1412
var
result = await resultTask;
1435
var
result = await resultTask;
1459
var
result = await resultTask;
Publishing\PipelineActivityReporterTests.cs (5)
584
var
promptResult = await promptTask.DefaultTimeout();
613
var
promptResult = await promptTask.DefaultTimeout();
642
var
promptResult = await promptTask.DefaultTimeout();
673
var
result = await promptTask.DefaultTimeout();
746
var
notificationResult = await notificationTask.DefaultTimeout();
tests\Shared\TestInteractionService.cs (13)
27
public Task<
InteractionResult
<bool>> PromptConfirmationAsync(string title, string message, MessageBoxInteractionOptions? options = null, CancellationToken cancellationToken = default)
32
public Task<
InteractionResult
<InteractionInput>> PromptInputAsync(string title, string? message, string inputLabel, string placeHolder, InputsDialogInteractionOptions? options = null, CancellationToken cancellationToken = default)
37
public async Task<
InteractionResult
<InteractionInput>> PromptInputAsync(string title, string? message, InteractionInput input, InputsDialogInteractionOptions? options = null, CancellationToken cancellationToken = default)
41
var
result = (
InteractionResult
<InteractionInput>)await data.CompletionTcs.Task;
45
public async Task<
InteractionResult
<InteractionInputCollection>> PromptInputsAsync(string title, string? message, IReadOnlyList<InteractionInput> inputs, InputsDialogInteractionOptions? options = null, CancellationToken cancellationToken = default)
49
var
result = (
InteractionResult
<InteractionInputCollection>)await data.CompletionTcs.Task;
60
public async Task<
InteractionResult
<bool>> PromptNotificationAsync(string title, string message, NotificationInteractionOptions? options = null, CancellationToken cancellationToken = default)
64
return (
InteractionResult
<bool>)await data.CompletionTcs.Task;
67
public async Task<
InteractionResult
<bool>> PromptMessageBoxAsync(string title, string message, MessageBoxInteractionOptions? options = null, CancellationToken cancellationToken = default)
71
return (
InteractionResult
<bool>)await data.CompletionTcs.Task;
76
public async Task<
InteractionResult
<bool>> PromptProgressAsync(string message, ProgressInteractionOptions? options = null, CancellationToken cancellationToken = default)
Publishers.AppHost (7)
DistributedApplicationBuilderExtensions.cs (7)
42
var
multiInputResult = await interactionService.PromptInputsAsync(
145
var
envResult = await interactionService.PromptInputAsync(
168
var
dbPasswordResult = await interactionService.PromptInputAsync(
183
var
regionResult = await interactionService.PromptInputAsync(
204
var
enableLoggingResult = await interactionService.PromptInputAsync(
218
var
instanceCountResult = await interactionService.PromptInputAsync(
233
var
deployModeResult = await interactionService.PromptInputAsync(
Stress.AppHost (15)
InteractionCommands.cs (15)
108
var
result = await interactionService.PromptInputAsync(
168
var
result = await interactionService.PromptInputsAsync(
246
var
result = await interactionService.PromptInputsAsync(
389
var
result = await interactionService.PromptInputsAsync(
489
var
result = await interactionService.PromptInputsAsync(
578
var
result = await interactionService.PromptInputsAsync(
749
var
result = await interactionService.PromptInputsAsync(
799
var
result = await interactionService.PromptProgressAsync(
828
var
result = await interactionService.PromptProgressAsync(
879
var
result = await interactionService.PromptProgressAsync(
902
var
result = await interactionService.PromptProgressAsync(
925
var
result = await interactionService.PromptProgressAsync(
950
var
result = await interactionService.PromptProgressAsync(
1000
var
result = await interactionService.PromptInputAsync(
1046
var
result = await interactionService.PromptInputAsync(