9 references to InputType
aspire (9)
Backchannel\ResourceSnapshotMapper.cs (1)
276
return string.Equals(input.InputType, nameof(
InputType
.SecretText), StringComparison.OrdinalIgnoreCase);
Commands\PipelineCommandBase.cs (8)
1126
if (!Enum.TryParse<
InputType
>(normalizedType, ignoreCase: true, out
var
inputType))
1142
InputType
.Text => await InteractionService.PromptForStringAsync(
1148
InputType
.SecretText => await InteractionService.PromptForStringAsync(
1155
InputType
.Choice => await HandleSelectInputAsync(input, promptText, cancellationToken),
1157
InputType
.Boolean => (await InteractionService.PromptConfirmAsync(promptText, binding: PromptBinding.CreateDefault(ParseBooleanValue(input.Value)), cancellationToken: cancellationToken)).ToString().ToLowerInvariant(),
1159
InputType
.Number => await HandleNumberInputAsync(input, promptText, cancellationToken),
1161
InputType
.File => await HandleFileInputAsync(input, promptText, backchannel, interactionId, cancellationToken),