10 references to InputType
aspire (10)
Backchannel\ResourceSnapshotMapper.cs (1)
282
return string.Equals(input.InputType, nameof(
InputType
.SecretText), StringComparison.OrdinalIgnoreCase);
Commands\PipelineCommandBase.cs (8)
1198
if (!Enum.TryParse<
InputType
>(normalizedType, ignoreCase: true, out
var
inputType))
1214
InputType
.Text => await InteractionService.PromptForStringAsync(
1220
InputType
.SecretText => await InteractionService.PromptForStringAsync(
1227
InputType
.Choice => await HandleSelectInputAsync(input, promptText, cancellationToken),
1229
InputType
.Boolean => (await InteractionService.PromptConfirmAsync(promptText, binding: PromptBinding.CreateDefault(ParseBooleanValue(input.Value)), cancellationToken: cancellationToken)).ToString().ToLowerInvariant(),
1231
InputType
.Number => await HandleNumberInputAsync(input, promptText, cancellationToken),
1233
InputType
.File => await HandleFileInputAsync(input, promptText, backchannel, interactionId, cancellationToken),
Mcp\Tools\ListResourcesTool.cs (1)
323
Options = string.Equals(input.InputType, nameof(
InputType
.Choice), StringComparison.OrdinalIgnoreCase)