2 instantiations of InteractionResult
Aspire.Hosting (2)
IInteractionService.cs (2)
369return new InteractionResult<T>(result, canceled: false); 384return new InteractionResult<T>(data ?? default, canceled: true);
66 references to InteractionResult
Aspire.Hosting (30)
IInteractionService.cs (19)
31/// An <see cref="InteractionResult{T}"/> containing <c>true</c> if the user confirmed, <c>false</c> otherwise. 33Task<InteractionResult<bool>> PromptConfirmationAsync(string title, string message, MessageBoxInteractionOptions? options = null, CancellationToken cancellationToken = default); 43/// An <see cref="InteractionResult{T}"/> containing <c>true</c> if the user accepted, <c>false</c> otherwise. 45Task<InteractionResult<bool>> PromptMessageBoxAsync(string title, string message, MessageBoxInteractionOptions? options = null, CancellationToken cancellationToken = default); 57/// An <see cref="InteractionResult{T}"/> containing the user's input. 59Task<InteractionResult<InteractionInput>> PromptInputAsync(string title, string? message, string inputLabel, string placeHolder, InputsDialogInteractionOptions? options = null, CancellationToken cancellationToken = default); 70/// An <see cref="InteractionResult{T}"/> containing the user's input. 72Task<InteractionResult<InteractionInput>> PromptInputAsync(string title, string? message, InteractionInput input, InputsDialogInteractionOptions? options = null, CancellationToken cancellationToken = default); 83/// An <see cref="InteractionResult{T}"/> containing the user's inputs. 85Task<InteractionResult<IReadOnlyList<InteractionInput>>> PromptInputsAsync(string title, string? message, IReadOnlyList<InteractionInput> inputs, InputsDialogInteractionOptions? options = null, CancellationToken cancellationToken = default); 95/// An <see cref="InteractionResult{T}"/> containing <c>true</c> if the user accepted, <c>false</c> otherwise. 97Task<InteractionResult<bool>> PromptNotificationAsync(string title, string message, NotificationInteractionOptions? options = null, CancellationToken cancellationToken = default); 357/// Provides a set of static methods for the <see cref="InteractionResult{T}"/>. 362/// Creates a new <see cref="InteractionResult{T}"/> with the specified result and a flag indicating that the interaction was not canceled. 366/// <returns>The new <see cref="InteractionResult{T}"/>.</returns> 367public static InteractionResult<T> Ok<T>(T result) 373/// Creates an <see cref="InteractionResult{T}"/> indicating a canceled interaction. 379/// An <see cref="InteractionResult{T}"/> with the <c>canceled</c> flag set to <see langword="true"/> and containing 382public static InteractionResult<T> Cancel<T>(T? data = default)
InteractionService.cs (8)
35public async Task<InteractionResult<bool>> PromptConfirmationAsync(string title, string message, MessageBoxInteractionOptions? options = null, CancellationToken cancellationToken = default) 45public async Task<InteractionResult<bool>> PromptMessageBoxAsync(string title, string message, MessageBoxInteractionOptions? options = null, CancellationToken cancellationToken = default) 54private async Task<InteractionResult<bool>> PromptMessageBoxCoreAsync(string title, string message, MessageBoxInteractionOptions options, CancellationToken cancellationToken) 75public async Task<InteractionResult<InteractionInput>> PromptInputAsync(string title, string? message, string inputLabel, string placeHolder, InputsDialogInteractionOptions? options = null, CancellationToken cancellationToken = default) 80public async Task<InteractionResult<InteractionInput>> PromptInputAsync(string title, string? message, InteractionInput input, InputsDialogInteractionOptions? options = null, CancellationToken cancellationToken = default) 82var result = await PromptInputsAsync(title, message, [input], options, cancellationToken).ConfigureAwait(false); 91public async Task<InteractionResult<IReadOnlyList<InteractionInput>>> PromptInputsAsync(string title, string? message, IReadOnlyList<InteractionInput> inputs, InputsDialogInteractionOptions? options = null, CancellationToken cancellationToken = default) 111public async Task<InteractionResult<bool>> PromptNotificationAsync(string title, string message, NotificationInteractionOptions? options = null, CancellationToken cancellationToken = default)
Orchestrator\ParameterProcessor.cs (2)
129var result = await interactionService.PromptNotificationAsync( 157var valuesPrompt = await interactionService.PromptInputsAsync(
VersionChecking\VersionCheckService.cs (1)
137var result = await _interactionService.PromptNotificationAsync(
Aspire.Hosting.Azure (2)
Provisioning\Internal\DefaultProvisioningContextProvider.cs (2)
76var messageBarResult = await interactionService.PromptNotificationAsync( 96var result = await interactionService.PromptInputsAsync(
Aspire.Hosting.Azure.Tests (8)
tests\Shared\TestInteractionService.cs (8)
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 Task<InteractionResult<InteractionInput>> PromptInputAsync(string title, string? message, InteractionInput input, InputsDialogInteractionOptions? options = null, CancellationToken cancellationToken = default) 33public async Task<InteractionResult<IReadOnlyList<InteractionInput>>> PromptInputsAsync(string title, string? message, IReadOnlyList<InteractionInput> inputs, InputsDialogInteractionOptions? options = null, CancellationToken cancellationToken = default) 37return (InteractionResult<IReadOnlyList<InteractionInput>>)await data.CompletionTcs.Task; 40public async Task<InteractionResult<bool>> PromptNotificationAsync(string title, string message, NotificationInteractionOptions? options = null, CancellationToken cancellationToken = default) 44return (InteractionResult<bool>)await data.CompletionTcs.Task; 47public Task<InteractionResult<bool>> PromptMessageBoxAsync(string title, string message, MessageBoxInteractionOptions? options = null, CancellationToken cancellationToken = default)
Aspire.Hosting.Tests (16)
Dashboard\DashboardServiceTests.cs (1)
335var result = await resultTask.DefaultTimeout();
InteractionServiceTests.cs (5)
32var result = await resultTask.DefaultTimeout(); 57var result = await resultTask.DefaultTimeout(); 96var result1 = await resultTask1.DefaultTimeout(); 104var result2 = await resultTask2.DefaultTimeout(); 110var result3 = await resultTask3.DefaultTimeout();
Publishing\PublishingActivityReporterTests.cs (2)
490var promptResult = await promptTask.DefaultTimeout(); 530var notificationResult = await notificationTask.DefaultTimeout();
tests\Shared\TestInteractionService.cs (8)
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 Task<InteractionResult<InteractionInput>> PromptInputAsync(string title, string? message, InteractionInput input, InputsDialogInteractionOptions? options = null, CancellationToken cancellationToken = default) 33public async Task<InteractionResult<IReadOnlyList<InteractionInput>>> PromptInputsAsync(string title, string? message, IReadOnlyList<InteractionInput> inputs, InputsDialogInteractionOptions? options = null, CancellationToken cancellationToken = default) 37return (InteractionResult<IReadOnlyList<InteractionInput>>)await data.CompletionTcs.Task; 40public async Task<InteractionResult<bool>> PromptNotificationAsync(string title, string message, NotificationInteractionOptions? options = null, CancellationToken cancellationToken = default) 44return (InteractionResult<bool>)await data.CompletionTcs.Task; 47public Task<InteractionResult<bool>> PromptMessageBoxAsync(string title, string message, MessageBoxInteractionOptions? options = null, CancellationToken cancellationToken = default)
Publishers.AppHost (7)
DistributedApplicationBuilderExtensions.cs (7)
33var multiInputResult = await interactionService.PromptInputsAsync( 93var envResult = await interactionService.PromptInputAsync( 115var dbPasswordResult = await interactionService.PromptInputAsync( 129var regionResult = await interactionService.PromptInputAsync( 149var enableLoggingResult = await interactionService.PromptInputAsync( 162var instanceCountResult = await interactionService.PromptInputAsync( 176var deployModeResult = await interactionService.PromptInputAsync(
Stress.AppHost (3)
InteractionCommands.cs (3)
69var result = await interactionService.PromptInputAsync( 139var result = await interactionService.PromptInputsAsync( 225var result = await interactionService.PromptInputsAsync(