2 instantiations of InteractionResult
Aspire.Hosting (2)
IInteractionService.cs (2)
654return new InteractionResult<T>(result, canceled: false); 669return new InteractionResult<T>(data ?? default, canceled: true);
91 references to InteractionResult
Aspire.Hosting (33)
IInteractionService.cs (19)
34/// An <see cref="InteractionResult{T}"/> containing <c>true</c> if the user confirmed, <c>false</c> otherwise. 36Task<InteractionResult<bool>> PromptConfirmationAsync(string title, string message, MessageBoxInteractionOptions? options = null, CancellationToken cancellationToken = default); 46/// An <see cref="InteractionResult{T}"/> containing <c>true</c> if the user accepted, <c>false</c> otherwise. 48Task<InteractionResult<bool>> PromptMessageBoxAsync(string title, string message, MessageBoxInteractionOptions? options = null, CancellationToken cancellationToken = default); 60/// An <see cref="InteractionResult{T}"/> containing the user's input. 62Task<InteractionResult<InteractionInput>> PromptInputAsync(string title, string? message, string inputLabel, string placeHolder, InputsDialogInteractionOptions? options = null, CancellationToken cancellationToken = default); 73/// An <see cref="InteractionResult{T}"/> containing the user's input. 75Task<InteractionResult<InteractionInput>> PromptInputAsync(string title, string? message, InteractionInput input, InputsDialogInteractionOptions? options = null, CancellationToken cancellationToken = default); 86/// An <see cref="InteractionResult{T}"/> containing the user's inputs as an <see cref="InteractionInputCollection"/>. 88Task<InteractionResult<InteractionInputCollection>> PromptInputsAsync(string title, string? message, IReadOnlyList<InteractionInput> inputs, InputsDialogInteractionOptions? options = null, CancellationToken cancellationToken = default); 98/// An <see cref="InteractionResult{T}"/> containing <c>true</c> if the user accepted, <c>false</c> otherwise. 100Task<InteractionResult<bool>> PromptNotificationAsync(string title, string message, NotificationInteractionOptions? options = null, CancellationToken cancellationToken = default); 642/// Provides a set of static methods for the <see cref="InteractionResult{T}"/>. 647/// Creates a new <see cref="InteractionResult{T}"/> with the specified result and a flag indicating that the interaction was not canceled. 651/// <returns>The new <see cref="InteractionResult{T}"/>.</returns> 652public static InteractionResult<T> Ok<T>(T result) 658/// Creates an <see cref="InteractionResult{T}"/> indicating a canceled interaction. 664/// An <see cref="InteractionResult{T}"/> with the <c>canceled</c> flag set to <see langword="true"/> and containing 667public static InteractionResult<T> Cancel<T>(T? data = default)
InteractionService.cs (8)
58public async Task<InteractionResult<bool>> PromptConfirmationAsync(string title, string message, MessageBoxInteractionOptions? options = null, CancellationToken cancellationToken = default) 68public async Task<InteractionResult<bool>> PromptMessageBoxAsync(string title, string message, MessageBoxInteractionOptions? options = null, CancellationToken cancellationToken = default) 77private async Task<InteractionResult<bool>> PromptMessageBoxCoreAsync(string title, string message, MessageBoxInteractionOptions options, CancellationToken cancellationToken) 106public async Task<InteractionResult<InteractionInput>> PromptInputAsync(string title, string? message, string inputLabel, string placeHolder, InputsDialogInteractionOptions? options = null, CancellationToken cancellationToken = default) 111public async Task<InteractionResult<InteractionInput>> PromptInputAsync(string title, string? message, InteractionInput input, InputsDialogInteractionOptions? options = null, CancellationToken cancellationToken = default) 113var result = await PromptInputsAsync(title, message, [input], options, cancellationToken).ConfigureAwait(false); 122public async Task<InteractionResult<InteractionInputCollection>> PromptInputsAsync(string title, string? message, IReadOnlyList<InteractionInput> inputs, InputsDialogInteractionOptions? options = null, CancellationToken cancellationToken = default) 219public async Task<InteractionResult<bool>> PromptNotificationAsync(string title, string message, NotificationInteractionOptions? options = null, CancellationToken cancellationToken = default)
Orchestrator\ParameterProcessor.cs (4)
274var result = await interactionService.PromptInputsAsync( 356var result = await interactionService.PromptInputsAsync( 467var result = await interactionService.PromptNotificationAsync( 505var valuesPrompt = await interactionService.PromptInputsAsync(
Pipelines\DistributedApplicationPipeline.cs (1)
88var result = await interactionService.PromptNotificationAsync(
VersionChecking\VersionCheckService.cs (1)
145var result = await _interactionService.PromptNotificationAsync(
Aspire.Hosting.Azure (8)
Provisioning\Internal\PublishModeProvisioningContextProvider.cs (6)
155var result = await _interactionService.PromptInputsAsync( 181var manualResult = await _interactionService.PromptInputsAsync( 254var result = await _interactionService.PromptInputsAsync( 280var manualResult = await _interactionService.PromptInputsAsync( 365var resourceGroupResult = await _interactionService.PromptInputsAsync( 446var locationResult = await _interactionService.PromptInputsAsync(
Provisioning\Internal\RunModeProvisioningContextProvider.cs (2)
106var messageBarResult = await _interactionService.PromptNotificationAsync( 273var result = await _interactionService.PromptInputsAsync(
Aspire.Hosting.Azure.Tests (11)
tests\Shared\TestInteractionService.cs (11)
18public Task<InteractionResult<bool>> PromptConfirmationAsync(string title, string message, MessageBoxInteractionOptions? options = null, CancellationToken cancellationToken = default) 23public Task<InteractionResult<InteractionInput>> PromptInputAsync(string title, string? message, string inputLabel, string placeHolder, InputsDialogInteractionOptions? options = null, CancellationToken cancellationToken = default) 28public async Task<InteractionResult<InteractionInput>> PromptInputAsync(string title, string? message, InteractionInput input, InputsDialogInteractionOptions? options = null, CancellationToken cancellationToken = default) 32var result = (InteractionResult<InteractionInput>)await data.CompletionTcs.Task; 36public async Task<InteractionResult<InteractionInputCollection>> PromptInputsAsync(string title, string? message, IReadOnlyList<InteractionInput> inputs, InputsDialogInteractionOptions? options = null, CancellationToken cancellationToken = default) 40var result = (InteractionResult<InteractionInputCollection>)await data.CompletionTcs.Task; 51public async Task<InteractionResult<bool>> PromptNotificationAsync(string title, string message, NotificationInteractionOptions? options = null, CancellationToken cancellationToken = default) 55return (InteractionResult<bool>)await data.CompletionTcs.Task; 58public Task<InteractionResult<bool>> PromptMessageBoxAsync(string title, string message, MessageBoxInteractionOptions? options = null, CancellationToken cancellationToken = default)
Aspire.Hosting.DevTunnels (1)
DevTunnelLoginManager.cs (1)
57var result = await _interactionService.PromptNotificationAsync(
Aspire.Hosting.Foundry (1)
HostedAgent\HostedAgentBuilderExtension.cs (1)
161var result = await interactionService.PromptInputAsync(
Aspire.Hosting.Tests (24)
Dashboard\DashboardServiceTests.cs (1)
386var result = await resultTask.DefaultTimeout();
InteractionServiceTests.cs (8)
36var result = await resultTask.DefaultTimeout(); 61var result = await resultTask.DefaultTimeout(); 100var result1 = await resultTask1.DefaultTimeout(); 108var result2 = await resultTask2.DefaultTimeout(); 114var result3 = await resultTask3.DefaultTimeout(); 373var result = await resultTask.DefaultTimeout(); 791var result = await resultTask.DefaultTimeout(); 973var result = await resultTask.DefaultTimeout();
Publishing\PipelineActivityReporterTests.cs (4)
534var promptResult = await promptTask.DefaultTimeout(); 563var promptResult = await promptTask.DefaultTimeout(); 592var promptResult = await promptTask.DefaultTimeout(); 632var notificationResult = await notificationTask.DefaultTimeout();
tests\Shared\TestInteractionService.cs (11)
18public Task<InteractionResult<bool>> PromptConfirmationAsync(string title, string message, MessageBoxInteractionOptions? options = null, CancellationToken cancellationToken = default) 23public Task<InteractionResult<InteractionInput>> PromptInputAsync(string title, string? message, string inputLabel, string placeHolder, InputsDialogInteractionOptions? options = null, CancellationToken cancellationToken = default) 28public async Task<InteractionResult<InteractionInput>> PromptInputAsync(string title, string? message, InteractionInput input, InputsDialogInteractionOptions? options = null, CancellationToken cancellationToken = default) 32var result = (InteractionResult<InteractionInput>)await data.CompletionTcs.Task; 36public async Task<InteractionResult<InteractionInputCollection>> PromptInputsAsync(string title, string? message, IReadOnlyList<InteractionInput> inputs, InputsDialogInteractionOptions? options = null, CancellationToken cancellationToken = default) 40var result = (InteractionResult<InteractionInputCollection>)await data.CompletionTcs.Task; 51public async Task<InteractionResult<bool>> PromptNotificationAsync(string title, string message, NotificationInteractionOptions? options = null, CancellationToken cancellationToken = default) 55return (InteractionResult<bool>)await data.CompletionTcs.Task; 58public Task<InteractionResult<bool>> PromptMessageBoxAsync(string title, string message, MessageBoxInteractionOptions? options = null, CancellationToken cancellationToken = default)
Publishers.AppHost (7)
DistributedApplicationBuilderExtensions.cs (7)
43var multiInputResult = await interactionService.PromptInputsAsync( 128var envResult = await interactionService.PromptInputAsync( 151var dbPasswordResult = await interactionService.PromptInputAsync( 166var regionResult = await interactionService.PromptInputAsync( 187var enableLoggingResult = await interactionService.PromptInputAsync( 201var instanceCountResult = await interactionService.PromptInputAsync( 216var deployModeResult = await interactionService.PromptInputAsync(
Stress.AppHost (6)
InteractionCommands.cs (6)
107var result = await interactionService.PromptInputAsync( 167var result = await interactionService.PromptInputsAsync( 245var result = await interactionService.PromptInputsAsync( 388var result = await interactionService.PromptInputsAsync( 487var result = await interactionService.PromptInputsAsync( 570var result = await interactionService.PromptInputsAsync(