2 instantiations of InteractionResult
Aspire.Hosting (2)
IInteractionService.cs (2)
1151return new InteractionResult<T>(result, canceled: false); 1166return new InteractionResult<T>(data ?? default, canceled: true);
199 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)
38/// An <see cref="InteractionResult{T}"/> containing <c>true</c> if the user confirmed, <c>false</c> otherwise. 40Task<InteractionResult<bool>> PromptConfirmationAsync(string title, string message, MessageBoxInteractionOptions? options = null, CancellationToken cancellationToken = default); 50/// An <see cref="InteractionResult{T}"/> containing <c>true</c> if the user accepted, <c>false</c> otherwise. 52Task<InteractionResult<bool>> PromptMessageBoxAsync(string title, string message, MessageBoxInteractionOptions? options = null, CancellationToken cancellationToken = default); 64/// An <see cref="InteractionResult{T}"/> containing the user's input. 66Task<InteractionResult<InteractionInput>> PromptInputAsync(string title, string? message, string inputLabel, string placeHolder, InputsDialogInteractionOptions? options = null, CancellationToken cancellationToken = default); 77/// An <see cref="InteractionResult{T}"/> containing the user's input. 79Task<InteractionResult<InteractionInput>> PromptInputAsync(string title, string? message, InteractionInput input, InputsDialogInteractionOptions? options = null, CancellationToken cancellationToken = default); 90/// An <see cref="InteractionResult{T}"/> containing the user's inputs as an <see cref="InteractionInputCollection"/>. 92Task<InteractionResult<InteractionInputCollection>> PromptInputsAsync(string title, string? message, IReadOnlyList<InteractionInput> inputs, InputsDialogInteractionOptions? options = null, CancellationToken cancellationToken = default); 102/// An <see cref="InteractionResult{T}"/> containing <c>true</c> if the user accepted, <c>false</c> otherwise. 104Task<InteractionResult<bool>> PromptNotificationAsync(string title, string message, NotificationInteractionOptions? options = null, CancellationToken cancellationToken = default); 127/// An <see cref="InteractionResult{T}"/> containing <c>true</c> if the operation completed successfully, 131Task<InteractionResult<bool>> PromptProgressAsync(string message, ProgressInteractionOptions? options = null, CancellationToken cancellationToken = default); 141/// An <see cref="InteractionResult{T}"/> containing <c>true</c> when work or an explicit completion succeeds, 193Task<InteractionResult<bool>> PromptTerminalAsync(string message, AspireTerminal terminal, TerminalInteractionOptions? options = null, CancellationToken cancellationToken = default); 1139/// Provides a set of static methods for the <see cref="InteractionResult{T}"/>. 1144/// Creates a new <see cref="InteractionResult{T}"/> with the specified result and a flag indicating that the interaction was not canceled. 1148/// <returns>The new <see cref="InteractionResult{T}"/>.</returns> 1149public static InteractionResult<T> Ok<T>(T result) 1155/// Creates an <see cref="InteractionResult{T}"/> indicating a canceled interaction. 1161/// An <see cref="InteractionResult{T}"/> with the <c>canceled</c> flag set to <see langword="true"/> and containing 1164public static InteractionResult<T> Cancel<T>(T? data = default)
InteractionService.cs (12)
101public async Task<InteractionResult<bool>> PromptConfirmationAsync(string title, string message, MessageBoxInteractionOptions? options = null, CancellationToken cancellationToken = default) 111public async Task<InteractionResult<bool>> PromptMessageBoxAsync(string title, string message, MessageBoxInteractionOptions? options = null, CancellationToken cancellationToken = default) 120private async Task<InteractionResult<bool>> PromptMessageBoxCoreAsync(string title, string message, MessageBoxInteractionOptions options, CancellationToken cancellationToken) 149public async Task<InteractionResult<InteractionInput>> PromptInputAsync(string title, string? message, string inputLabel, string placeHolder, InputsDialogInteractionOptions? options = null, CancellationToken cancellationToken = default) 154public async Task<InteractionResult<InteractionInput>> PromptInputAsync(string title, string? message, InteractionInput input, InputsDialogInteractionOptions? options = null, CancellationToken cancellationToken = default) 156var result = await PromptInputsAsync(title, message, [input], options, cancellationToken).ConfigureAwait(false); 165public async Task<InteractionResult<InteractionInputCollection>> PromptInputsAsync(string title, string? message, IReadOnlyList<InteractionInput> inputs, InputsDialogInteractionOptions? options = null, CancellationToken cancellationToken = default) 274public async Task<InteractionResult<bool>> PromptNotificationAsync(string title, string message, NotificationInteractionOptions? options = null, CancellationToken cancellationToken = default) 302public async Task<InteractionResult<bool>> PromptProgressAsync(string message, ProgressInteractionOptions? options = null, CancellationToken cancellationToken = default) 311public async Task<InteractionResult<bool>> PromptTerminalAsync(string message, AspireTerminal terminal, TerminalInteractionOptions? options = null, CancellationToken cancellationToken = default) 341private async Task<InteractionResult<bool>> PromptWorkAsync( 431private static InteractionResult<bool> CreateWorkResult(InteractionCompletionState completion)
Orchestrator\ParameterProcessor.cs (4)
444var result = await interactionService.PromptInputsAsync( 503var result = await interactionService.PromptInputsAsync( 724var result = await interactionService.PromptNotificationAsync( 813var 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 (11)
AzureEnvironmentResource.cs (1)
355var result = await interactionService.PromptNotificationAsync(
AzureProvisioningController.cs (2)
695var result = await interactionService.PromptInputsAsync( 1712var notificationResult = await interactionService.PromptNotificationAsync(
Provisioning\Internal\PublishModeProvisioningContextProvider.cs (7)
117var result = await _interactionService.PromptInputsAsync( 185var result = await _interactionService.PromptInputsAsync( 211var manualResult = await _interactionService.PromptInputsAsync( 284var result = await _interactionService.PromptInputsAsync( 310var manualResult = await _interactionService.PromptInputsAsync( 395var resourceGroupResult = await _interactionService.PromptInputsAsync( 476var locationResult = await _interactionService.PromptInputsAsync(
Provisioning\Internal\RunModeProvisioningContextProvider.cs (1)
290var 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)
529var result = await interactionService.PromptNotificationAsync(
Aspire.Hosting.Kubernetes (1)
Deployment\HelmDeploymentEngine.cs (1)
681var 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)
665var promptResult = await prompt.DefaultTimeout(); 789var result = await resultTask.DefaultTimeout(); 1260var result = await resultTask; 1301var 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(); 560var result = await resultTask.DefaultTimeout(); 978var result = await resultTask.DefaultTimeout(); 1160var result = await resultTask.DefaultTimeout(); 1239var result = await interactionService.PromptProgressAsync("Please wait", new ProgressInteractionOptions 1280var result = await resultTask.DefaultTimeout(); 1316var result = await resultTask.DefaultTimeout(); 1350var result = await resultTask.DefaultTimeout(); 1370var result = await resultTask.DefaultTimeout(); 1391var result = await resultTask.DefaultTimeout(); 1469var result = await resultTask; 1497var result = await resultTask; 1517var result = await resultTask; 1540var result = await resultTask; 1564var 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)
124var result = await interactionService.PromptInputAsync( 184var result = await interactionService.PromptInputsAsync( 262var result = await interactionService.PromptInputsAsync( 367var result = await interactionService.PromptInputsAsync( 486var result = await interactionService.PromptInputsAsync( 586var result = await interactionService.PromptInputsAsync( 675var result = await interactionService.PromptInputsAsync( 846var result = await interactionService.PromptInputsAsync( 896var result = await interactionService.PromptProgressAsync( 925var result = await interactionService.PromptProgressAsync( 976var result = await interactionService.PromptProgressAsync( 999var result = await interactionService.PromptProgressAsync( 1022var result = await interactionService.PromptProgressAsync( 1047var result = await interactionService.PromptProgressAsync( 1097var result = await interactionService.PromptInputAsync( 1143var 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(