2 instantiations of InteractionResult
Aspire.Hosting (2)
IInteractionService.cs (2)
1029return new InteractionResult<T>(result, canceled: false); 1044return new InteractionResult<T>(data ?? default, canceled: true);
176 references to InteractionResult
Aspire.Hosting (49)
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 (21)
32/// An <see cref="InteractionResult{T}"/> containing <c>true</c> if the user confirmed, <c>false</c> otherwise. 34Task<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. 46Task<InteractionResult<bool>> PromptMessageBoxAsync(string title, string message, MessageBoxInteractionOptions? options = null, CancellationToken cancellationToken = default); 58/// An <see cref="InteractionResult{T}"/> containing the user's input. 60Task<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. 73Task<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"/>. 86Task<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. 98Task<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, 125Task<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> 1027public 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 1042public static InteractionResult<T> Cancel<T>(T? data = default)
InteractionService.cs (10)
90public async Task<InteractionResult<bool>> PromptConfirmationAsync(string title, string message, MessageBoxInteractionOptions? options = null, CancellationToken cancellationToken = default) 100public async Task<InteractionResult<bool>> PromptMessageBoxAsync(string title, string message, MessageBoxInteractionOptions? options = null, CancellationToken cancellationToken = default) 109private async Task<InteractionResult<bool>> PromptMessageBoxCoreAsync(string title, string message, MessageBoxInteractionOptions options, CancellationToken cancellationToken) 138public async Task<InteractionResult<InteractionInput>> PromptInputAsync(string title, string? message, string inputLabel, string placeHolder, InputsDialogInteractionOptions? options = null, CancellationToken cancellationToken = default) 143public async Task<InteractionResult<InteractionInput>> PromptInputAsync(string title, string? message, InteractionInput input, InputsDialogInteractionOptions? options = null, CancellationToken cancellationToken = default) 145var result = await PromptInputsAsync(title, message, [input], options, cancellationToken).ConfigureAwait(false); 154public async Task<InteractionResult<InteractionInputCollection>> PromptInputsAsync(string title, string? message, IReadOnlyList<InteractionInput> inputs, InputsDialogInteractionOptions? options = null, CancellationToken cancellationToken = default) 263public async Task<InteractionResult<bool>> PromptNotificationAsync(string title, string message, NotificationInteractionOptions? options = null, CancellationToken cancellationToken = default) 291public async Task<InteractionResult<bool>> PromptProgressAsync(string message, ProgressInteractionOptions? options = null, CancellationToken cancellationToken = default) 381private static InteractionResult<bool> CreateProgressResult(InteractionCompletionState completion)
Orchestrator\ParameterProcessor.cs (4)
353var result = await interactionService.PromptInputsAsync( 392var result = await interactionService.PromptInputsAsync( 563var result = await interactionService.PromptNotificationAsync( 614var valuesPrompt = await interactionService.PromptInputsAsync(
Pipelines\DistributedApplicationPipeline.cs (2)
92var result = await interactionService.PromptNotificationAsync( 176var result = await interactionService.PromptNotificationAsync(
VersionChecking\VersionCheckService.cs (1)
149var result = await _interactionService.PromptNotificationAsync(
Aspire.Hosting.Azure (10)
AzureEnvironmentResource.cs (1)
337var result = await interactionService.PromptNotificationAsync(
AzureProvisioningController.cs (2)
672var result = await interactionService.PromptInputsAsync( 1667var notificationResult = await interactionService.PromptNotificationAsync(
Provisioning\Internal\PublishModeProvisioningContextProvider.cs (6)
154var result = await _interactionService.PromptInputsAsync( 180var manualResult = await _interactionService.PromptInputsAsync( 253var result = await _interactionService.PromptInputsAsync( 279var manualResult = await _interactionService.PromptInputsAsync( 364var resourceGroupResult = await _interactionService.PromptInputsAsync( 445var locationResult = await _interactionService.PromptInputsAsync(
Provisioning\Internal\RunModeProvisioningContextProvider.cs (1)
279var result = await _interactionService.PromptInputsAsync(
Aspire.Hosting.Azure.Tests (13)
tests\Shared\TestInteractionService.cs (13)
27public Task<InteractionResult<bool>> PromptConfirmationAsync(string title, string message, MessageBoxInteractionOptions? options = null, CancellationToken cancellationToken = default) 32public Task<InteractionResult<InteractionInput>> PromptInputAsync(string title, string? message, string inputLabel, string placeHolder, InputsDialogInteractionOptions? options = null, CancellationToken cancellationToken = default) 37public async Task<InteractionResult<InteractionInput>> PromptInputAsync(string title, string? message, InteractionInput input, InputsDialogInteractionOptions? options = null, CancellationToken cancellationToken = default) 41var result = (InteractionResult<InteractionInput>)await data.CompletionTcs.Task; 45public async Task<InteractionResult<InteractionInputCollection>> PromptInputsAsync(string title, string? message, IReadOnlyList<InteractionInput> inputs, InputsDialogInteractionOptions? options = null, CancellationToken cancellationToken = default) 49var result = (InteractionResult<InteractionInputCollection>)await data.CompletionTcs.Task; 60public async Task<InteractionResult<bool>> PromptNotificationAsync(string title, string message, NotificationInteractionOptions? options = null, CancellationToken cancellationToken = default) 64return (InteractionResult<bool>)await data.CompletionTcs.Task; 67public async Task<InteractionResult<bool>> PromptMessageBoxAsync(string title, string message, MessageBoxInteractionOptions? options = null, CancellationToken cancellationToken = default) 71return (InteractionResult<bool>)await data.CompletionTcs.Task; 76public async Task<InteractionResult<bool>> PromptProgressAsync(string message, ProgressInteractionOptions? options = null, CancellationToken cancellationToken = default)
Aspire.Hosting.Browsers.Tests (13)
tests\Shared\TestInteractionService.cs (13)
27public Task<InteractionResult<bool>> PromptConfirmationAsync(string title, string message, MessageBoxInteractionOptions? options = null, CancellationToken cancellationToken = default) 32public Task<InteractionResult<InteractionInput>> PromptInputAsync(string title, string? message, string inputLabel, string placeHolder, InputsDialogInteractionOptions? options = null, CancellationToken cancellationToken = default) 37public async Task<InteractionResult<InteractionInput>> PromptInputAsync(string title, string? message, InteractionInput input, InputsDialogInteractionOptions? options = null, CancellationToken cancellationToken = default) 41var result = (InteractionResult<InteractionInput>)await data.CompletionTcs.Task; 45public async Task<InteractionResult<InteractionInputCollection>> PromptInputsAsync(string title, string? message, IReadOnlyList<InteractionInput> inputs, InputsDialogInteractionOptions? options = null, CancellationToken cancellationToken = default) 49var result = (InteractionResult<InteractionInputCollection>)await data.CompletionTcs.Task; 60public async Task<InteractionResult<bool>> PromptNotificationAsync(string title, string message, NotificationInteractionOptions? options = null, CancellationToken cancellationToken = default) 64return (InteractionResult<bool>)await data.CompletionTcs.Task; 67public async Task<InteractionResult<bool>> PromptMessageBoxAsync(string title, string message, MessageBoxInteractionOptions? options = null, CancellationToken cancellationToken = default) 71return (InteractionResult<bool>)await data.CompletionTcs.Task; 76public async Task<InteractionResult<bool>> PromptProgressAsync(string message, ProgressInteractionOptions? options = null, CancellationToken cancellationToken = default)
Aspire.Hosting.DevTunnels (1)
DevTunnelLoginManager.cs (1)
56var result = await _interactionService.PromptNotificationAsync(
Aspire.Hosting.DevTunnels.Tests (13)
tests\Shared\TestInteractionService.cs (13)
27public Task<InteractionResult<bool>> PromptConfirmationAsync(string title, string message, MessageBoxInteractionOptions? options = null, CancellationToken cancellationToken = default) 32public Task<InteractionResult<InteractionInput>> PromptInputAsync(string title, string? message, string inputLabel, string placeHolder, InputsDialogInteractionOptions? options = null, CancellationToken cancellationToken = default) 37public async Task<InteractionResult<InteractionInput>> PromptInputAsync(string title, string? message, InteractionInput input, InputsDialogInteractionOptions? options = null, CancellationToken cancellationToken = default) 41var result = (InteractionResult<InteractionInput>)await data.CompletionTcs.Task; 45public async Task<InteractionResult<InteractionInputCollection>> PromptInputsAsync(string title, string? message, IReadOnlyList<InteractionInput> inputs, InputsDialogInteractionOptions? options = null, CancellationToken cancellationToken = default) 49var result = (InteractionResult<InteractionInputCollection>)await data.CompletionTcs.Task; 60public async Task<InteractionResult<bool>> PromptNotificationAsync(string title, string message, NotificationInteractionOptions? options = null, CancellationToken cancellationToken = default) 64return (InteractionResult<bool>)await data.CompletionTcs.Task; 67public async Task<InteractionResult<bool>> PromptMessageBoxAsync(string title, string message, MessageBoxInteractionOptions? options = null, CancellationToken cancellationToken = default) 71return (InteractionResult<bool>)await data.CompletionTcs.Task; 76public async Task<InteractionResult<bool>> PromptProgressAsync(string message, ProgressInteractionOptions? options = null, CancellationToken cancellationToken = default)
Aspire.Hosting.Docker (1)
DockerComposeEnvironmentResource.cs (1)
497var result = await interactionService.PromptNotificationAsync(
Aspire.Hosting.Kubernetes (1)
Deployment\HelmDeploymentEngine.cs (1)
648var result = await interactionService.PromptNotificationAsync(
Aspire.Hosting.RemoteHost.Tests (13)
tests\Shared\TestInteractionService.cs (13)
27public Task<InteractionResult<bool>> PromptConfirmationAsync(string title, string message, MessageBoxInteractionOptions? options = null, CancellationToken cancellationToken = default) 32public Task<InteractionResult<InteractionInput>> PromptInputAsync(string title, string? message, string inputLabel, string placeHolder, InputsDialogInteractionOptions? options = null, CancellationToken cancellationToken = default) 37public async Task<InteractionResult<InteractionInput>> PromptInputAsync(string title, string? message, InteractionInput input, InputsDialogInteractionOptions? options = null, CancellationToken cancellationToken = default) 41var result = (InteractionResult<InteractionInput>)await data.CompletionTcs.Task; 45public async Task<InteractionResult<InteractionInputCollection>> PromptInputsAsync(string title, string? message, IReadOnlyList<InteractionInput> inputs, InputsDialogInteractionOptions? options = null, CancellationToken cancellationToken = default) 49var result = (InteractionResult<InteractionInputCollection>)await data.CompletionTcs.Task; 60public async Task<InteractionResult<bool>> PromptNotificationAsync(string title, string message, NotificationInteractionOptions? options = null, CancellationToken cancellationToken = default) 64return (InteractionResult<bool>)await data.CompletionTcs.Task; 67public async Task<InteractionResult<bool>> PromptMessageBoxAsync(string title, string message, MessageBoxInteractionOptions? options = null, CancellationToken cancellationToken = default) 71return (InteractionResult<bool>)await data.CompletionTcs.Task; 76public async Task<InteractionResult<bool>> PromptProgressAsync(string message, ProgressInteractionOptions? options = null, CancellationToken cancellationToken = default)
Aspire.Hosting.Tests (40)
Dashboard\DashboardServiceTests.cs (3)
630var result = await resultTask.DefaultTimeout(); 1098var result = await resultTask; 1138var 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)
584var promptResult = await promptTask.DefaultTimeout(); 613var promptResult = await promptTask.DefaultTimeout(); 642var promptResult = await promptTask.DefaultTimeout(); 673var result = await promptTask.DefaultTimeout(); 746var notificationResult = await notificationTask.DefaultTimeout();
tests\Shared\TestInteractionService.cs (13)
27public Task<InteractionResult<bool>> PromptConfirmationAsync(string title, string message, MessageBoxInteractionOptions? options = null, CancellationToken cancellationToken = default) 32public Task<InteractionResult<InteractionInput>> PromptInputAsync(string title, string? message, string inputLabel, string placeHolder, InputsDialogInteractionOptions? options = null, CancellationToken cancellationToken = default) 37public async Task<InteractionResult<InteractionInput>> PromptInputAsync(string title, string? message, InteractionInput input, InputsDialogInteractionOptions? options = null, CancellationToken cancellationToken = default) 41var result = (InteractionResult<InteractionInput>)await data.CompletionTcs.Task; 45public async Task<InteractionResult<InteractionInputCollection>> PromptInputsAsync(string title, string? message, IReadOnlyList<InteractionInput> inputs, InputsDialogInteractionOptions? options = null, CancellationToken cancellationToken = default) 49var result = (InteractionResult<InteractionInputCollection>)await data.CompletionTcs.Task; 60public async Task<InteractionResult<bool>> PromptNotificationAsync(string title, string message, NotificationInteractionOptions? options = null, CancellationToken cancellationToken = default) 64return (InteractionResult<bool>)await data.CompletionTcs.Task; 67public async Task<InteractionResult<bool>> PromptMessageBoxAsync(string title, string message, MessageBoxInteractionOptions? options = null, CancellationToken cancellationToken = default) 71return (InteractionResult<bool>)await data.CompletionTcs.Task; 76public async Task<InteractionResult<bool>> PromptProgressAsync(string message, ProgressInteractionOptions? options = null, CancellationToken cancellationToken = default)
Publishers.AppHost (7)
DistributedApplicationBuilderExtensions.cs (7)
42var multiInputResult = await interactionService.PromptInputsAsync( 145var envResult = await interactionService.PromptInputAsync( 168var dbPasswordResult = await interactionService.PromptInputAsync( 183var regionResult = await interactionService.PromptInputAsync( 204var enableLoggingResult = await interactionService.PromptInputAsync( 218var instanceCountResult = await interactionService.PromptInputAsync( 233var deployModeResult = await interactionService.PromptInputAsync(
Stress.AppHost (15)
InteractionCommands.cs (15)
108var result = await interactionService.PromptInputAsync( 168var result = await interactionService.PromptInputsAsync( 246var result = await interactionService.PromptInputsAsync( 389var result = await interactionService.PromptInputsAsync( 489var result = await interactionService.PromptInputsAsync( 578var result = await interactionService.PromptInputsAsync( 749var result = await interactionService.PromptInputsAsync( 799var result = await interactionService.PromptProgressAsync( 828var result = await interactionService.PromptProgressAsync( 879var result = await interactionService.PromptProgressAsync( 902var result = await interactionService.PromptProgressAsync( 925var result = await interactionService.PromptProgressAsync( 950var result = await interactionService.PromptProgressAsync( 1000var result = await interactionService.PromptInputAsync( 1046var result = await interactionService.PromptInputAsync(