2 instantiations of InteractionResult
Aspire.Hosting (2)
InteractionService.cs (2)
313
return new
InteractionResult
<T>(result, canceled: false);
318
return 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.
33
Task<
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.
45
Task<
InteractionResult
<bool>> PromptMessageBoxAsync(string title, string message, MessageBoxInteractionOptions? options = null, CancellationToken cancellationToken = default);
57
/// An <see cref="
InteractionResult
{T}"/> containing the user's input.
59
Task<
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.
72
Task<
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.
85
Task<
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.
97
Task<
InteractionResult
<bool>> PromptMessageBarAsync(string title, string message, MessageBarInteractionOptions? options = null, CancellationToken cancellationToken = default);
InteractionService.cs (10)
34
public async Task<
InteractionResult
<bool>> PromptConfirmationAsync(string title, string message, MessageBoxInteractionOptions? options = null, CancellationToken cancellationToken = default)
44
public async Task<
InteractionResult
<bool>> PromptMessageBoxAsync(string title, string message, MessageBoxInteractionOptions? options = null, CancellationToken cancellationToken = default)
53
private async Task<
InteractionResult
<bool>> PromptMessageBoxCoreAsync(string title, string message, MessageBoxInteractionOptions options, CancellationToken cancellationToken)
74
public async Task<
InteractionResult
<InteractionInput>> PromptInputAsync(string title, string? message, string inputLabel, string placeHolder, InputsDialogInteractionOptions? options = null, CancellationToken cancellationToken = default)
79
public async Task<
InteractionResult
<InteractionInput>> PromptInputAsync(string title, string? message, InteractionInput input, InputsDialogInteractionOptions? options = null, CancellationToken cancellationToken = default)
81
var
result = await PromptInputsAsync(title, message, [input], options, cancellationToken).ConfigureAwait(false);
90
public async Task<
InteractionResult
<IReadOnlyList<InteractionInput>>> PromptInputsAsync(string title, string? message, IReadOnlyList<InteractionInput> inputs, InputsDialogInteractionOptions? options = null, CancellationToken cancellationToken = default)
110
public async Task<
InteractionResult
<bool>> PromptMessageBarAsync(string title, string message, MessageBarInteractionOptions? options = null, CancellationToken cancellationToken = default)
311
internal static
InteractionResult
<T> Ok<T>(T result)
316
internal static
InteractionResult
<T> Cancel<T>(T? data = default)
Orchestrator\ParameterProcessor.cs (2)
130
var
result = await interactionService.PromptMessageBarAsync(
163
var
valuesPrompt = await interactionService.PromptInputsAsync(
VersionChecking\VersionCheckService.cs (1)
127
var
result = await _interactionService.PromptMessageBarAsync(
Aspire.Hosting.Tests (15)
Dashboard\DashboardServiceTests.cs (1)
336
var
result = await resultTask.DefaultTimeout();
InteractionServiceTests.cs (5)
33
var
result = await resultTask.DefaultTimeout();
58
var
result = await resultTask.DefaultTimeout();
97
var
result1 = await resultTask1.DefaultTimeout();
105
var
result2 = await resultTask2.DefaultTimeout();
111
var
result3 = await resultTask3.DefaultTimeout();
Publishing\PublishingActivityReporterTests.cs (1)
491
var
promptResult = await promptTask.DefaultTimeout();
TestInteractionService.cs (8)
18
public Task<
InteractionResult
<bool>> PromptConfirmationAsync(string title, string message, MessageBoxInteractionOptions? options = null, CancellationToken cancellationToken = default)
23
public Task<
InteractionResult
<InteractionInput>> PromptInputAsync(string title, string? message, string inputLabel, string placeHolder, InputsDialogInteractionOptions? options = null, CancellationToken cancellationToken = default)
28
public Task<
InteractionResult
<InteractionInput>> PromptInputAsync(string title, string? message, InteractionInput input, InputsDialogInteractionOptions? options = null, CancellationToken cancellationToken = default)
33
public async Task<
InteractionResult
<IReadOnlyList<InteractionInput>>> PromptInputsAsync(string title, string? message, IReadOnlyList<InteractionInput> inputs, InputsDialogInteractionOptions? options = null, CancellationToken cancellationToken = default)
37
return (
InteractionResult
<IReadOnlyList<InteractionInput>>)await data.CompletionTcs.Task;
40
public async Task<
InteractionResult
<bool>> PromptMessageBarAsync(string title, string message, MessageBarInteractionOptions? options = null, CancellationToken cancellationToken = default)
44
return (
InteractionResult
<bool>)await data.CompletionTcs.Task;
47
public Task<
InteractionResult
<bool>> PromptMessageBoxAsync(string title, string message, MessageBoxInteractionOptions? options = null, CancellationToken cancellationToken = default)
Publishers.AppHost (7)
DistributedApplicationBuilderExtensions.cs (7)
33
var
multiInputResult = await interactionService.PromptInputsAsync(
93
var
envResult = await interactionService.PromptInputAsync(
115
var
dbPasswordResult = await interactionService.PromptInputAsync(
129
var
regionResult = await interactionService.PromptInputAsync(
149
var
enableLoggingResult = await interactionService.PromptInputAsync(
162
var
instanceCountResult = await interactionService.PromptInputAsync(
176
var
deployModeResult = await interactionService.PromptInputAsync(
Stress.AppHost (3)
InteractionCommands.cs (3)
66
var
result = await interactionService.PromptInputAsync(
136
var
result = await interactionService.PromptInputsAsync(
181
var
result = await interactionService.PromptInputsAsync(