19 instantiations of InteractionInput
Aspire.Hosting (3)
InteractionService.cs (1)
76return await PromptInputAsync(title, message, new InteractionInput { InputType = InputType.Text, Label = inputLabel, Required = true, Placeholder = placeHolder }, options, cancellationToken).ConfigureAwait(false);
Orchestrator\ParameterProcessor.cs (2)
148var input = new InteractionInput 157var saveParameters = new InteractionInput
Aspire.Hosting.Tests (1)
Dashboard\DashboardServiceTests.cs (1)
318new Aspire.Hosting.InteractionInput { InputType = Aspire.Hosting.InputType.Text, Label = "Input" });
Publishers.AppHost (9)
DistributedApplicationBuilderExtensions.cs (9)
37new InteractionInput 44new InteractionInput 51new InteractionInput 96new InteractionInput 118new InteractionInput 132new InteractionInput 152new InteractionInput 165new InteractionInput 179new InteractionInput
Stress.AppHost (6)
InteractionCommands.cs (6)
101var dinnerInput = new InteractionInput 127var numberOfPeopleInput = new InteractionInput { InputType = InputType.Number, Label = "Number of people", Placeholder = "Enter number of people", Value = "2", Required = true }; 130new InteractionInput { InputType = InputType.Text, Label = "Name", Placeholder = "Enter name", Required = true }, 131new InteractionInput { InputType = InputType.SecretText, Label = "Password", Placeholder = "Enter password", Required = true }, 134new InteractionInput { InputType = InputType.Boolean, Label = "Remember me", Placeholder = "What does this do?", Required = true }, 174inputs.Add(new InteractionInput
43 references to InteractionInput
Aspire.Hosting (26)
Dashboard\DashboardServiceData.cs (1)
171var modelInput = inputsInfo.Inputs[i];
IInteractionService.cs (10)
59Task<InteractionResult<InteractionInput>> PromptInputAsync(string title, string? message, string inputLabel, string placeHolder, InputsDialogInteractionOptions? options = null, CancellationToken cancellationToken = default); 62/// Prompts the user for a single input using a specified <see cref="InteractionInput"/>. 72Task<InteractionResult<InteractionInput>> PromptInputAsync(string title, string? message, InteractionInput input, InputsDialogInteractionOptions? options = null, CancellationToken cancellationToken = default); 79/// <param name="inputs">A collection of <see cref="InteractionInput"/> to prompt for.</param> 85Task<InteractionResult<IReadOnlyList<InteractionInput>>> PromptInputsAsync(string title, string? message, IReadOnlyList<InteractionInput> inputs, InputsDialogInteractionOptions? options = null, CancellationToken cancellationToken = default); 144/// Specifies the type of input for an <see cref="InteractionInput"/>. 196public required IReadOnlyList<InteractionInput> Inputs { get; init; } 213public void AddValidationError(InteractionInput input, string errorMessage)
InteractionService.cs (12)
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) 84return InteractionResultFactory.Cancel<InteractionInput>(); 90public async Task<InteractionResult<IReadOnlyList<InteractionInput>>> PromptInputsAsync(string title, string? message, IReadOnlyList<InteractionInput> inputs, InputsDialogInteractionOptions? options = null, CancellationToken cancellationToken = default) 104var inputState = completion.State as IReadOnlyList<InteractionInput>; 106? InteractionResultFactory.Cancel<IReadOnlyList<InteractionInput>>() 229if (result.State is IReadOnlyList<InteractionInput> inputs) 235foreach (var input in inputs) 390public InputsInteractionInfo(IReadOnlyList<InteractionInput> inputs) 395public IReadOnlyList<InteractionInput> Inputs { get; }
Orchestrator\ParameterProcessor.cs (3)
143var resourceInputs = new List<(ParameterResource ParameterResource, InteractionInput Input)>(); 148var input = new InteractionInput 157var saveParameters = new InteractionInput
Aspire.Hosting.Tests (7)
TestInteractionService.cs (7)
10internal sealed record InteractionData(string Title, string? Message, IReadOnlyList<InteractionInput> Inputs, InteractionOptions? Options, TaskCompletionSource<object> CompletionTcs); 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;
Publishers.AppHost (2)
DistributedApplicationBuilderExtensions.cs (2)
68var appNameInput = validationContext.Inputs.FirstOrDefault(i => i.Label == "Application Name"); 74var versionInput = validationContext.Inputs.FirstOrDefault(i => i.Label == "Application Version");
Stress.AppHost (8)
InteractionCommands.cs (8)
75var input = context.Inputs[0]; 93var input = result.Data; 101var dinnerInput = new InteractionInput 127var numberOfPeopleInput = new InteractionInput { InputType = InputType.Number, Label = "Number of people", Placeholder = "Enter number of people", Value = "2", Required = true }; 128var inputs = new List<InteractionInput> 161foreach (var updatedInput in result.Data) 171var inputs = new List<InteractionInput>(); 195foreach (var input in result.Data)