32 references to InputType
Aspire.Hosting (12)
Dashboard\DashboardService.cs (6)
195private static Aspire.DashboardService.Proto.V1.InputType MapInputType(Aspire.Hosting.InputType inputType) 199Aspire.Hosting.InputType.Text => Aspire.DashboardService.Proto.V1.InputType.Text, 200Aspire.Hosting.InputType.SecretText => Aspire.DashboardService.Proto.V1.InputType.SecretText, 201Aspire.Hosting.InputType.Choice => Aspire.DashboardService.Proto.V1.InputType.Choice, 202Aspire.Hosting.InputType.Boolean => Aspire.DashboardService.Proto.V1.InputType.Boolean, 203Aspire.Hosting.InputType.Number => Aspire.DashboardService.Proto.V1.InputType.Number,
IInteractionService.cs (2)
116public required InputType InputType { get; init; } 124/// Gets or sets the options for the input. Only used by <see cref="InputType.Choice"/> inputs.
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 (3)
150InputType = parameter.Secret ? InputType.SecretText : InputType.Text, 159InputType = InputType.Boolean,
Aspire.Hosting.Tests (5)
Dashboard\DashboardServiceTests.cs (1)
318new Aspire.Hosting.InteractionInput { InputType = Aspire.Hosting.InputType.Text, Label = "Input" });
Orchestrator\ParameterProcessorTests.cs (4)
206Assert.Equal(InputType.Text, input.InputType); 212Assert.Equal(InputType.Text, input.InputType); 218Assert.Equal(InputType.SecretText, input.InputType); 224Assert.Equal(InputType.Boolean, input.InputType);
Publishers.AppHost (9)
DistributedApplicationBuilderExtensions.cs (9)
40InputType = InputType.Text, 47InputType = InputType.Text, 54InputType = InputType.Choice, 99InputType = InputType.Text, 121InputType = InputType.SecretText, 135InputType = InputType.Choice, 155InputType = InputType.Boolean, 168InputType = InputType.Number, 182InputType = InputType.Choice,
Stress.AppHost (6)
InteractionCommands.cs (6)
103InputType = InputType.Choice, 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 }, 176InputType = InputType.Text,