2 instantiations of InteractionResult
Aspire.Hosting (2)
InteractionService.cs (2)
313return new InteractionResult<T>(result, canceled: false); 318return new InteractionResult<T>(data ?? default, canceled: true);
50 references to InteractionResult
Aspire.Hosting (25)
IInteractionService.cs (12)
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>> PromptMessageBarAsync(string title, string message, MessageBarInteractionOptions? options = null, CancellationToken cancellationToken = default);
InteractionService.cs (10)
34public async Task<InteractionResult<bool>> PromptConfirmationAsync(string title, string message, MessageBoxInteractionOptions? options = null, CancellationToken cancellationToken = default) 44public async Task<InteractionResult<bool>> PromptMessageBoxAsync(string title, string message, MessageBoxInteractionOptions? options = null, CancellationToken cancellationToken = default) 53private async Task<InteractionResult<bool>> PromptMessageBoxCoreAsync(string title, string message, MessageBoxInteractionOptions options, CancellationToken cancellationToken) 74public async Task<InteractionResult<InteractionInput>> PromptInputAsync(string title, string? message, string inputLabel, string placeHolder, InputsDialogInteractionOptions? options = null, CancellationToken cancellationToken = default) 79public async Task<InteractionResult<InteractionInput>> PromptInputAsync(string title, string? message, InteractionInput input, InputsDialogInteractionOptions? options = null, CancellationToken cancellationToken = default) 81var result = await PromptInputsAsync(title, message, [input], options, cancellationToken).ConfigureAwait(false); 90public async Task<InteractionResult<IReadOnlyList<InteractionInput>>> PromptInputsAsync(string title, string? message, IReadOnlyList<InteractionInput> inputs, InputsDialogInteractionOptions? options = null, CancellationToken cancellationToken = default) 110public async Task<InteractionResult<bool>> PromptMessageBarAsync(string title, string message, MessageBarInteractionOptions? options = null, CancellationToken cancellationToken = default) 311internal static InteractionResult<T> Ok<T>(T result) 316internal static InteractionResult<T> Cancel<T>(T? data = default)
Orchestrator\ParameterProcessor.cs (2)
130var result = await interactionService.PromptMessageBarAsync( 163var valuesPrompt = await interactionService.PromptInputsAsync(
VersionChecking\VersionCheckService.cs (1)
127var result = await _interactionService.PromptMessageBarAsync(
Aspire.Hosting.Tests (15)
Dashboard\DashboardServiceTests.cs (1)
336var result = await resultTask.DefaultTimeout();
InteractionServiceTests.cs (5)
33var result = await resultTask.DefaultTimeout(); 58var result = await resultTask.DefaultTimeout(); 97var result1 = await resultTask1.DefaultTimeout(); 105var result2 = await resultTask2.DefaultTimeout(); 111var result3 = await resultTask3.DefaultTimeout();
Publishing\PublishingActivityReporterTests.cs (1)
491var promptResult = await promptTask.DefaultTimeout();
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>> PromptMessageBarAsync(string title, string message, MessageBarInteractionOptions? 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)
66var result = await interactionService.PromptInputAsync( 136var result = await interactionService.PromptInputsAsync( 181var result = await interactionService.PromptInputsAsync(