2 instantiations of InteractionResult
Aspire.Hosting (2)
IInteractionService.cs (2)
1136return new InteractionResult<T>(result, canceled: false); 1151return new InteractionResult<T>(data ?? default, canceled: true);
198 references to InteractionResult
Aspire.Hosting (53)
ApplicationModel\ResourceCommandService.cs (2)
458var progressResult = await interactionService.PromptProgressAsync(progressOptions.Message, options: options, cancellationToken: cancellationToken).ConfigureAwait(false); 710var result = await interactionService.PromptInputsAsync(
Ats\InteractionExports.cs (9)
63var result = await interactionService.PromptConfirmationAsync(title, message, options?.ToOptions(), cancellationToken).ConfigureAwait(false); 80var result = await interactionService.PromptMessageBoxAsync(title, message, options?.ToOptions(), cancellationToken).ConfigureAwait(false); 97var result = await interactionService.PromptNotificationAsync(title, message, options?.ToOptions(), cancellationToken).ConfigureAwait(false); 115var result = await interactionService.PromptProgressAsync(message, options?.ToOptions(), cancellationToken).ConfigureAwait(false); 136var result = await interactionService.PromptInputAsync(title, message, input.Input, options?.ToOptions(), cancellationToken).ConfigureAwait(false); 164var result = await interactionService.PromptInputsAsync(title, message, interactionInputs, options?.ToOptions(), cancellationToken).ConfigureAwait(false); 814internal static BoolInteractionResult From(InteractionResult<bool> result) 840internal static InputInteractionResult From(InteractionResult<InteractionInput> result) 872internal static InputsInteractionResult From(InteractionResult<InteractionInputCollection> result)
IInteractionService.cs (23)
33/// An <see cref="InteractionResult{T}"/> containing <c>true</c> if the user confirmed, <c>false</c> otherwise. 35Task<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. 47Task<InteractionResult<bool>> PromptMessageBoxAsync(string title, string message, MessageBoxInteractionOptions? options = null, CancellationToken cancellationToken = default); 59/// An <see cref="InteractionResult{T}"/> containing the user's input. 61Task<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. 74Task<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"/>. 87Task<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. 99Task<InteractionResult<bool>> PromptNotificationAsync(string title, string message, NotificationInteractionOptions? options = null, CancellationToken cancellationToken = default); 122/// An <see cref="InteractionResult{T}"/> containing <c>true</c> if the operation completed successfully, 126Task<InteractionResult<bool>> PromptProgressAsync(string message, ProgressInteractionOptions? options = null, CancellationToken cancellationToken = default); 136/// An <see cref="InteractionResult{T}"/> containing <c>true</c> when work or an explicit completion succeeds, 188Task<InteractionResult<bool>> PromptTerminalAsync(string message, AspireTerminal terminal, TerminalInteractionOptions? options = null, CancellationToken cancellationToken = default); 1124/// Provides a set of static methods for the <see cref="InteractionResult{T}"/>. 1129/// Creates a new <see cref="InteractionResult{T}"/> with the specified result and a flag indicating that the interaction was not canceled. 1133/// <returns>The new <see cref="InteractionResult{T}"/>.</returns> 1134public static InteractionResult<T> Ok<T>(T result) 1140/// Creates an <see cref="InteractionResult{T}"/> indicating a canceled interaction. 1146/// An <see cref="InteractionResult{T}"/> with the <c>canceled</c> flag set to <see langword="true"/> and containing 1149public static InteractionResult<T> Cancel<T>(T? data = default)
InteractionService.cs (12)
94public async Task<InteractionResult<bool>> PromptConfirmationAsync(string title, string message, MessageBoxInteractionOptions? options = null, CancellationToken cancellationToken = default) 104public async Task<InteractionResult<bool>> PromptMessageBoxAsync(string title, string message, MessageBoxInteractionOptions? options = null, CancellationToken cancellationToken = default) 113private async Task<InteractionResult<bool>> PromptMessageBoxCoreAsync(string title, string message, MessageBoxInteractionOptions options, CancellationToken cancellationToken) 142public async Task<InteractionResult<InteractionInput>> PromptInputAsync(string title, string? message, string inputLabel, string placeHolder, InputsDialogInteractionOptions? options = null, CancellationToken cancellationToken = default) 147public async Task<InteractionResult<InteractionInput>> PromptInputAsync(string title, string? message, InteractionInput input, InputsDialogInteractionOptions? options = null, CancellationToken cancellationToken = default) 149var result = await PromptInputsAsync(title, message, [input], options, cancellationToken).ConfigureAwait(false); 158public async Task<InteractionResult<InteractionInputCollection>> PromptInputsAsync(string title, string? message, IReadOnlyList<InteractionInput> inputs, InputsDialogInteractionOptions? options = null, CancellationToken cancellationToken = default) 267public async Task<InteractionResult<bool>> PromptNotificationAsync(string title, string message, NotificationInteractionOptions? options = null, CancellationToken cancellationToken = default) 295public async Task<InteractionResult<bool>> PromptProgressAsync(string message, ProgressInteractionOptions? options = null, CancellationToken cancellationToken = default) 304public async Task<InteractionResult<bool>> PromptTerminalAsync(string message, AspireTerminal terminal, TerminalInteractionOptions? options = null, CancellationToken cancellationToken = default) 334private async Task<InteractionResult<bool>> PromptWorkAsync( 424private static InteractionResult<bool> CreateWorkResult(InteractionCompletionState completion)
Orchestrator\ParameterProcessor.cs (4)
350var result = await interactionService.PromptInputsAsync( 389var result = await interactionService.PromptInputsAsync( 560var result = await interactionService.PromptNotificationAsync( 611var valuesPrompt = await interactionService.PromptInputsAsync(
Pipelines\DistributedApplicationPipeline.cs (1)
90var result = await interactionService.PromptNotificationAsync(
Publishing\ContainerRuntimeReadiness.cs (1)
46var result = await interactionService.PromptNotificationAsync(
VersionChecking\VersionCheckService.cs (1)
147var result = await _interactionService.PromptNotificationAsync(
Aspire.Hosting.Azure (10)
AzureEnvironmentResource.cs (1)
333var result = await interactionService.PromptNotificationAsync(
AzureProvisioningController.cs (2)
669var result = await interactionService.PromptInputsAsync( 1664var notificationResult = await interactionService.PromptNotificationAsync(
Provisioning\Internal\PublishModeProvisioningContextProvider.cs (6)
151var result = await _interactionService.PromptInputsAsync( 177var manualResult = await _interactionService.PromptInputsAsync( 250var result = await _interactionService.PromptInputsAsync( 276var manualResult = await _interactionService.PromptInputsAsync( 361var resourceGroupResult = await _interactionService.PromptInputsAsync( 442var locationResult = await _interactionService.PromptInputsAsync(
Provisioning\Internal\RunModeProvisioningContextProvider.cs (1)
277var result = await _interactionService.PromptInputsAsync(
Aspire.Hosting.Azure.Tests (15)
tests\Shared\TestInteractionService.cs (15)
33public Task<InteractionResult<bool>> PromptConfirmationAsync(string title, string message, MessageBoxInteractionOptions? options = null, CancellationToken cancellationToken = default) 38public Task<InteractionResult<InteractionInput>> PromptInputAsync(string title, string? message, string inputLabel, string placeHolder, InputsDialogInteractionOptions? options = null, CancellationToken cancellationToken = default) 43public async Task<InteractionResult<InteractionInput>> PromptInputAsync(string title, string? message, InteractionInput input, InputsDialogInteractionOptions? options = null, CancellationToken cancellationToken = default) 47var result = (InteractionResult<InteractionInput>)await data.CompletionTcs.Task; 51public async Task<InteractionResult<InteractionInputCollection>> PromptInputsAsync(string title, string? message, IReadOnlyList<InteractionInput> inputs, InputsDialogInteractionOptions? options = null, CancellationToken cancellationToken = default) 55var result = (InteractionResult<InteractionInputCollection>)await data.CompletionTcs.Task; 66public async Task<InteractionResult<bool>> PromptNotificationAsync(string title, string message, NotificationInteractionOptions? options = null, CancellationToken cancellationToken = default) 70return (InteractionResult<bool>)await data.CompletionTcs.Task; 73public async Task<InteractionResult<bool>> PromptMessageBoxAsync(string title, string message, MessageBoxInteractionOptions? options = null, CancellationToken cancellationToken = default) 77return (InteractionResult<bool>)await data.CompletionTcs.Task; 82public async Task<InteractionResult<bool>> PromptProgressAsync(string message, ProgressInteractionOptions? options = null, CancellationToken cancellationToken = default) 92public Task<InteractionResult<bool>> PromptTerminalAsync(string message, AspireTerminal terminal, TerminalInteractionOptions? options = null, CancellationToken cancellationToken = default) 100private async Task<InteractionResult<bool>> PromptWorkAsync(
Aspire.Hosting.Browsers.Tests (15)
tests\Shared\TestInteractionService.cs (15)
33public Task<InteractionResult<bool>> PromptConfirmationAsync(string title, string message, MessageBoxInteractionOptions? options = null, CancellationToken cancellationToken = default) 38public Task<InteractionResult<InteractionInput>> PromptInputAsync(string title, string? message, string inputLabel, string placeHolder, InputsDialogInteractionOptions? options = null, CancellationToken cancellationToken = default) 43public async Task<InteractionResult<InteractionInput>> PromptInputAsync(string title, string? message, InteractionInput input, InputsDialogInteractionOptions? options = null, CancellationToken cancellationToken = default) 47var result = (InteractionResult<InteractionInput>)await data.CompletionTcs.Task; 51public async Task<InteractionResult<InteractionInputCollection>> PromptInputsAsync(string title, string? message, IReadOnlyList<InteractionInput> inputs, InputsDialogInteractionOptions? options = null, CancellationToken cancellationToken = default) 55var result = (InteractionResult<InteractionInputCollection>)await data.CompletionTcs.Task; 66public async Task<InteractionResult<bool>> PromptNotificationAsync(string title, string message, NotificationInteractionOptions? options = null, CancellationToken cancellationToken = default) 70return (InteractionResult<bool>)await data.CompletionTcs.Task; 73public async Task<InteractionResult<bool>> PromptMessageBoxAsync(string title, string message, MessageBoxInteractionOptions? options = null, CancellationToken cancellationToken = default) 77return (InteractionResult<bool>)await data.CompletionTcs.Task; 82public async Task<InteractionResult<bool>> PromptProgressAsync(string message, ProgressInteractionOptions? options = null, CancellationToken cancellationToken = default) 92public Task<InteractionResult<bool>> PromptTerminalAsync(string message, AspireTerminal terminal, TerminalInteractionOptions? options = null, CancellationToken cancellationToken = default) 100private async Task<InteractionResult<bool>> PromptWorkAsync(
Aspire.Hosting.DevTunnels (1)
DevTunnelLoginManager.cs (1)
56var result = await _interactionService.PromptNotificationAsync(
Aspire.Hosting.DevTunnels.Tests (15)
tests\Shared\TestInteractionService.cs (15)
33public Task<InteractionResult<bool>> PromptConfirmationAsync(string title, string message, MessageBoxInteractionOptions? options = null, CancellationToken cancellationToken = default) 38public Task<InteractionResult<InteractionInput>> PromptInputAsync(string title, string? message, string inputLabel, string placeHolder, InputsDialogInteractionOptions? options = null, CancellationToken cancellationToken = default) 43public async Task<InteractionResult<InteractionInput>> PromptInputAsync(string title, string? message, InteractionInput input, InputsDialogInteractionOptions? options = null, CancellationToken cancellationToken = default) 47var result = (InteractionResult<InteractionInput>)await data.CompletionTcs.Task; 51public async Task<InteractionResult<InteractionInputCollection>> PromptInputsAsync(string title, string? message, IReadOnlyList<InteractionInput> inputs, InputsDialogInteractionOptions? options = null, CancellationToken cancellationToken = default) 55var result = (InteractionResult<InteractionInputCollection>)await data.CompletionTcs.Task; 66public async Task<InteractionResult<bool>> PromptNotificationAsync(string title, string message, NotificationInteractionOptions? options = null, CancellationToken cancellationToken = default) 70return (InteractionResult<bool>)await data.CompletionTcs.Task; 73public async Task<InteractionResult<bool>> PromptMessageBoxAsync(string title, string message, MessageBoxInteractionOptions? options = null, CancellationToken cancellationToken = default) 77return (InteractionResult<bool>)await data.CompletionTcs.Task; 82public async Task<InteractionResult<bool>> PromptProgressAsync(string message, ProgressInteractionOptions? options = null, CancellationToken cancellationToken = default) 92public Task<InteractionResult<bool>> PromptTerminalAsync(string message, AspireTerminal terminal, TerminalInteractionOptions? options = null, CancellationToken cancellationToken = default) 100private async Task<InteractionResult<bool>> PromptWorkAsync(
Aspire.Hosting.Docker (1)
DockerComposeEnvironmentResource.cs (1)
523var result = await interactionService.PromptNotificationAsync(
Aspire.Hosting.Kubernetes (1)
Deployment\HelmDeploymentEngine.cs (1)
682var result = await interactionService.PromptNotificationAsync(
Aspire.Hosting.RemoteHost.Tests (15)
tests\Shared\TestInteractionService.cs (15)
33public Task<InteractionResult<bool>> PromptConfirmationAsync(string title, string message, MessageBoxInteractionOptions? options = null, CancellationToken cancellationToken = default) 38public Task<InteractionResult<InteractionInput>> PromptInputAsync(string title, string? message, string inputLabel, string placeHolder, InputsDialogInteractionOptions? options = null, CancellationToken cancellationToken = default) 43public async Task<InteractionResult<InteractionInput>> PromptInputAsync(string title, string? message, InteractionInput input, InputsDialogInteractionOptions? options = null, CancellationToken cancellationToken = default) 47var result = (InteractionResult<InteractionInput>)await data.CompletionTcs.Task; 51public async Task<InteractionResult<InteractionInputCollection>> PromptInputsAsync(string title, string? message, IReadOnlyList<InteractionInput> inputs, InputsDialogInteractionOptions? options = null, CancellationToken cancellationToken = default) 55var result = (InteractionResult<InteractionInputCollection>)await data.CompletionTcs.Task; 66public async Task<InteractionResult<bool>> PromptNotificationAsync(string title, string message, NotificationInteractionOptions? options = null, CancellationToken cancellationToken = default) 70return (InteractionResult<bool>)await data.CompletionTcs.Task; 73public async Task<InteractionResult<bool>> PromptMessageBoxAsync(string title, string message, MessageBoxInteractionOptions? options = null, CancellationToken cancellationToken = default) 77return (InteractionResult<bool>)await data.CompletionTcs.Task; 82public async Task<InteractionResult<bool>> PromptProgressAsync(string message, ProgressInteractionOptions? options = null, CancellationToken cancellationToken = default) 92public Task<InteractionResult<bool>> PromptTerminalAsync(string message, AspireTerminal terminal, TerminalInteractionOptions? options = null, CancellationToken cancellationToken = default) 100private async Task<InteractionResult<bool>> PromptWorkAsync(
Aspire.Hosting.Tests (45)
Dashboard\DashboardServiceTests.cs (4)
626var promptResult = await prompt.DefaultTimeout(); 749var result = await resultTask.DefaultTimeout(); 1217var result = await resultTask; 1257var result = await resultTask;
InteractionServiceTests.cs (19)
37var result = await resultTask.DefaultTimeout(); 62var result = await resultTask.DefaultTimeout(); 101var result1 = await resultTask1.DefaultTimeout(); 109var result2 = await resultTask2.DefaultTimeout(); 115var result3 = await resultTask3.DefaultTimeout(); 456var result = await resultTask.DefaultTimeout(); 874var result = await resultTask.DefaultTimeout(); 1056var result = await resultTask.DefaultTimeout(); 1135var result = await interactionService.PromptProgressAsync("Please wait", new ProgressInteractionOptions 1176var result = await resultTask.DefaultTimeout(); 1212var result = await resultTask.DefaultTimeout(); 1246var result = await resultTask.DefaultTimeout(); 1266var result = await resultTask.DefaultTimeout(); 1287var result = await resultTask.DefaultTimeout(); 1364var result = await resultTask; 1392var result = await resultTask; 1412var result = await resultTask; 1435var result = await resultTask; 1459var result = await resultTask;
Publishing\PipelineActivityReporterTests.cs (5)
582var promptResult = await promptTask.DefaultTimeout(); 611var promptResult = await promptTask.DefaultTimeout(); 640var promptResult = await promptTask.DefaultTimeout(); 671var result = await promptTask.DefaultTimeout(); 744var notificationResult = await notificationTask.DefaultTimeout();
Terminals\InteractionServiceTerminalTests.cs (2)
123var result = await prompt.DefaultTimeout(); 172var result = await prompt.DefaultTimeout();
tests\Shared\TestInteractionService.cs (15)
33public Task<InteractionResult<bool>> PromptConfirmationAsync(string title, string message, MessageBoxInteractionOptions? options = null, CancellationToken cancellationToken = default) 38public Task<InteractionResult<InteractionInput>> PromptInputAsync(string title, string? message, string inputLabel, string placeHolder, InputsDialogInteractionOptions? options = null, CancellationToken cancellationToken = default) 43public async Task<InteractionResult<InteractionInput>> PromptInputAsync(string title, string? message, InteractionInput input, InputsDialogInteractionOptions? options = null, CancellationToken cancellationToken = default) 47var result = (InteractionResult<InteractionInput>)await data.CompletionTcs.Task; 51public async Task<InteractionResult<InteractionInputCollection>> PromptInputsAsync(string title, string? message, IReadOnlyList<InteractionInput> inputs, InputsDialogInteractionOptions? options = null, CancellationToken cancellationToken = default) 55var result = (InteractionResult<InteractionInputCollection>)await data.CompletionTcs.Task; 66public async Task<InteractionResult<bool>> PromptNotificationAsync(string title, string message, NotificationInteractionOptions? options = null, CancellationToken cancellationToken = default) 70return (InteractionResult<bool>)await data.CompletionTcs.Task; 73public async Task<InteractionResult<bool>> PromptMessageBoxAsync(string title, string message, MessageBoxInteractionOptions? options = null, CancellationToken cancellationToken = default) 77return (InteractionResult<bool>)await data.CompletionTcs.Task; 82public async Task<InteractionResult<bool>> PromptProgressAsync(string message, ProgressInteractionOptions? options = null, CancellationToken cancellationToken = default) 92public Task<InteractionResult<bool>> PromptTerminalAsync(string message, AspireTerminal terminal, TerminalInteractionOptions? options = null, CancellationToken cancellationToken = default) 100private async Task<InteractionResult<bool>> PromptWorkAsync(
Publishers.AppHost (7)
DistributedApplicationBuilderExtensions.cs (7)
40var multiInputResult = await interactionService.PromptInputsAsync( 143var envResult = await interactionService.PromptInputAsync( 166var dbPasswordResult = await interactionService.PromptInputAsync( 181var regionResult = await interactionService.PromptInputAsync( 202var enableLoggingResult = await interactionService.PromptInputAsync( 216var instanceCountResult = await interactionService.PromptInputAsync( 231var deployModeResult = await interactionService.PromptInputAsync(
Stress.AppHost (16)
InteractionCommands.cs (16)
108var result = await interactionService.PromptInputAsync( 168var result = await interactionService.PromptInputsAsync( 246var result = await interactionService.PromptInputsAsync( 351var result = await interactionService.PromptInputsAsync( 470var result = await interactionService.PromptInputsAsync( 570var result = await interactionService.PromptInputsAsync( 659var result = await interactionService.PromptInputsAsync( 830var result = await interactionService.PromptInputsAsync( 880var result = await interactionService.PromptProgressAsync( 909var result = await interactionService.PromptProgressAsync( 960var result = await interactionService.PromptProgressAsync( 983var result = await interactionService.PromptProgressAsync( 1006var result = await interactionService.PromptProgressAsync( 1031var result = await interactionService.PromptProgressAsync( 1081var result = await interactionService.PromptInputAsync( 1127var result = await interactionService.PromptInputAsync(
Terminals.AppHost (4)
TerminalInteractionCommands.cs (4)
63var result = await interactionService.PromptTerminalAsync( 142var result = await interactionService.PromptTerminalAsync( 293var limitResult = await interactionService.PromptInputsAsync( 335var result = await interactionService.PromptTerminalAsync(