32 references to InputType
Aspire.Hosting (12)
Dashboard\DashboardService.cs (6)
195
private static Aspire.DashboardService.Proto.V1.InputType MapInputType(Aspire.Hosting.
InputType
inputType)
199
Aspire.Hosting.
InputType
.Text => Aspire.DashboardService.Proto.V1.InputType.Text,
200
Aspire.Hosting.
InputType
.SecretText => Aspire.DashboardService.Proto.V1.InputType.SecretText,
201
Aspire.Hosting.
InputType
.Choice => Aspire.DashboardService.Proto.V1.InputType.Choice,
202
Aspire.Hosting.
InputType
.Boolean => Aspire.DashboardService.Proto.V1.InputType.Boolean,
203
Aspire.Hosting.
InputType
.Number => Aspire.DashboardService.Proto.V1.InputType.Number,
IInteractionService.cs (2)
116
public 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)
76
return await PromptInputAsync(title, message, new InteractionInput { InputType =
InputType
.Text, Label = inputLabel, Required = true, Placeholder = placeHolder }, options, cancellationToken).ConfigureAwait(false);
Orchestrator\ParameterProcessor.cs (3)
150
InputType = parameter.Secret ?
InputType
.SecretText :
InputType
.Text,
159
InputType =
InputType
.Boolean,
Aspire.Hosting.Tests (5)
Dashboard\DashboardServiceTests.cs (1)
318
new Aspire.Hosting.InteractionInput { InputType = Aspire.Hosting.
InputType
.Text, Label = "Input" });
Orchestrator\ParameterProcessorTests.cs (4)
206
Assert.Equal(
InputType
.Text, input.InputType);
212
Assert.Equal(
InputType
.Text, input.InputType);
218
Assert.Equal(
InputType
.SecretText, input.InputType);
224
Assert.Equal(
InputType
.Boolean, input.InputType);
Publishers.AppHost (9)
DistributedApplicationBuilderExtensions.cs (9)
40
InputType =
InputType
.Text,
47
InputType =
InputType
.Text,
54
InputType =
InputType
.Choice,
99
InputType =
InputType
.Text,
121
InputType =
InputType
.SecretText,
135
InputType =
InputType
.Choice,
155
InputType =
InputType
.Boolean,
168
InputType =
InputType
.Number,
182
InputType =
InputType
.Choice,
Stress.AppHost (6)
InteractionCommands.cs (6)
103
InputType =
InputType
.Choice,
127
var numberOfPeopleInput = new InteractionInput { InputType =
InputType
.Number, Label = "Number of people", Placeholder = "Enter number of people", Value = "2", Required = true };
130
new InteractionInput { InputType =
InputType
.Text, Label = "Name", Placeholder = "Enter name", Required = true },
131
new InteractionInput { InputType =
InputType
.SecretText, Label = "Password", Placeholder = "Enter password", Required = true },
134
new InteractionInput { InputType =
InputType
.Boolean, Label = "Remember me", Placeholder = "What does this do?", Required = true },
176
InputType =
InputType
.Text,