16 instantiations of InteractionInputCollection
Aspire.Hosting (2)
InteractionService.cs (2)
100var inputCollection = new InteractionInputCollection(inputs); 111: InteractionResult.Ok(new InteractionInputCollection(inputState));
Aspire.Hosting.Azure.Tests (3)
tests\Shared\TestInteractionService.cs (3)
35var data = new InteractionData(title, message, new InteractionInputCollection(inputs), options, cancellationToken, new TaskCompletionSource<object>()); 45return InteractionResult.Ok(new InteractionInputCollection(result.Data)); 50var data = new InteractionData(title, message, new InteractionInputCollection([]), options, cancellationToken, new TaskCompletionSource<object>());
Aspire.Hosting.Tests (11)
InteractionServiceTests.cs (8)
423var collection = new InteractionInputCollection(inputs); 463var collection = new InteractionInputCollection(inputs); 497var collection = new InteractionInputCollection(inputs); 519var exception = Assert.Throws<InvalidOperationException>(() => new InteractionInputCollection(inputs)); 534var exception = Assert.Throws<InvalidOperationException>(() => new InteractionInputCollection(inputs)); 550var collection = new InteractionInputCollection(inputs); 583var collection = new InteractionInputCollection(inputs); 616var collection = new InteractionInputCollection(inputs);
tests\Shared\TestInteractionService.cs (3)
35var data = new InteractionData(title, message, new InteractionInputCollection(inputs), options, cancellationToken, new TaskCompletionSource<object>()); 45return InteractionResult.Ok(new InteractionInputCollection(result.Data)); 50var data = new InteractionData(title, message, new InteractionInputCollection([]), options, cancellationToken, new TaskCompletionSource<object>());
24 references to InteractionInputCollection
Aspire.Hosting (9)
IInteractionService.cs (4)
85/// An <see cref="InteractionResult{T}"/> containing the user's inputs as an <see cref="InteractionInputCollection"/>. 87Task<InteractionResult<InteractionInputCollection>> PromptInputsAsync(string title, string? message, IReadOnlyList<InteractionInput> inputs, InputsDialogInteractionOptions? options = null, CancellationToken cancellationToken = default); 187/// Initializes a new instance of the <see cref="InteractionInputCollection"/> class. 331public required InteractionInputCollection Inputs { get; init; }
InteractionService.cs (5)
91public async Task<InteractionResult<InteractionInputCollection>> PromptInputsAsync(string title, string? message, IReadOnlyList<InteractionInput> inputs, InputsDialogInteractionOptions? options = null, CancellationToken cancellationToken = default) 100var inputCollection = new InteractionInputCollection(inputs); 110? InteractionResult.Cancel<InteractionInputCollection>() 439public InputsInteractionInfo(InteractionInputCollection inputs) 444public InteractionInputCollection Inputs { get; }
Aspire.Hosting.Azure.Tests (4)
tests\Shared\TestInteractionService.cs (4)
10internal sealed record InteractionData(string Title, string? Message, InteractionInputCollection Inputs, InteractionOptions? Options, CancellationToken CancellationToken, TaskCompletionSource<object> CompletionTcs); 33public async Task<InteractionResult<InteractionInputCollection>> PromptInputsAsync(string title, string? message, IReadOnlyList<InteractionInput> inputs, InputsDialogInteractionOptions? options = null, CancellationToken cancellationToken = default) 37var result = (InteractionResult<InteractionInputCollection>)await data.CompletionTcs.Task; 42return InteractionResult.Cancel<InteractionInputCollection>();
Aspire.Hosting.Tests (11)
InteractionServiceTests.cs (7)
423var collection = new InteractionInputCollection(inputs); 463var collection = new InteractionInputCollection(inputs); 497var collection = new InteractionInputCollection(inputs); 550var collection = new InteractionInputCollection(inputs); 583var collection = new InteractionInputCollection(inputs); 616var collection = new InteractionInputCollection(inputs); 650var resultCollection = result.Data;
tests\Shared\TestInteractionService.cs (4)
10internal sealed record InteractionData(string Title, string? Message, InteractionInputCollection Inputs, InteractionOptions? Options, CancellationToken CancellationToken, TaskCompletionSource<object> CompletionTcs); 33public async Task<InteractionResult<InteractionInputCollection>> PromptInputsAsync(string title, string? message, IReadOnlyList<InteractionInput> inputs, InputsDialogInteractionOptions? options = null, CancellationToken cancellationToken = default) 37var result = (InteractionResult<InteractionInputCollection>)await data.CompletionTcs.Task; 42return InteractionResult.Cancel<InteractionInputCollection>();