8 implementations of PromptForStringAsync
aspire (2)
Interaction\ConsoleInteractionService.cs (1)
218
public async Task<string>
PromptForStringAsync
(string promptText, Func<string, ValidationResult>? validator = null, bool isSecret = false, bool required = false, PromptBinding<string?>? binding = null, bool logResponse = true, CancellationToken cancellationToken = default)
Interaction\ExtensionInteractionService.cs (1)
145
public async Task<string>
PromptForStringAsync
(string promptText, Func<string, ValidationResult>? validator = null, bool isSecret = false, bool required = false, PromptBinding<string?>? binding = null, bool logResponse = true, CancellationToken cancellationToken = default)
Aspire.Cli.Tests (6)
Commands\PublishCommandPromptingIntegrationTests.cs (1)
1161
public Task<string>
PromptForStringAsync
(string promptText, Func<string, ValidationResult>? validator = null, bool isSecret = false, bool required = false, PromptBinding<string?>? binding = null, bool logResponse = true, CancellationToken cancellationToken = default)
Commands\UpdateCommandTests.cs (1)
3707
public Task<string>
PromptForStringAsync
(string promptText, Func<string, ValidationResult>? validator = null, bool isSecret = false, bool required = false, PromptBinding<string?>? binding = null, bool logResponse = true, CancellationToken cancellationToken = default)
Projects\ExtensionGuestLauncherTests.cs (1)
230
public Task<string>
PromptForStringAsync
(string promptText, Func<string, Spectre.Console.ValidationResult>? validator = null, bool isSecret = false, bool required = false, PromptBinding<string?>? binding = null, bool logResponse = true, CancellationToken cancellationToken = default) => throw new NotImplementedException();
Templating\DotNetTemplateFactoryTests.cs (1)
381
public Task<string>
PromptForStringAsync
(string promptText, Func<string, ValidationResult>? validator = null, bool isSecret = false, bool required = false, PromptBinding<string?>? binding = null, bool logResponse = true, CancellationToken cancellationToken = default)
TestServices\TestExtensionInteractionService.cs (1)
66
public Task<string>
PromptForStringAsync
(string promptText, Func<string, ValidationResult>? validator = null, bool isSecret = false, bool required = false, PromptBinding<string?>? binding = null, bool logResponse = true, CancellationToken cancellationToken = default)
TestServices\TestInteractionService.cs (1)
120
public Task<string>
PromptForStringAsync
(string promptText, Func<string, ValidationResult>? validator = null, bool isSecret = false, bool required = false, PromptBinding<string?>? binding = null, bool logResponse = true, CancellationToken cancellationToken = default)
16 references to PromptForStringAsync
aspire (15)
Commands\ConfigCommand.cs (4)
89
var key = await InteractionService.
PromptForStringAsync
(ConfigCommandStrings.GetCommand_PromptForKey, required: true, cancellationToken: cancellationToken);
154
var key = await InteractionService.
PromptForStringAsync
(ConfigCommandStrings.SetCommand_PromptForKey, required: true, cancellationToken: cancellationToken);
155
var value = await InteractionService.
PromptForStringAsync
(ConfigCommandStrings.SetCommand_PromptForValue, required: true, cancellationToken: cancellationToken);
397
var key = await InteractionService.
PromptForStringAsync
(ConfigCommandStrings.DeleteCommand_PromptForKey, required: true, cancellationToken: cancellationToken);
Commands\DoCommand.cs (1)
76
targetStep = await InteractionService.
PromptForStringAsync
(
Commands\NewCommand.cs (1)
1010
return await interactionService.
PromptForStringAsync
(
Commands\PipelineCommandBase.cs (5)
1212
InputType.Text => await InteractionService.
PromptForStringAsync
(
1218
InputType.SecretText => await InteractionService.
PromptForStringAsync
(
1243
return await InteractionService.
PromptForStringAsync
(promptText, binding: PromptBinding.CreateDefault(input.Value), required: input.Required, cancellationToken: cancellationToken);
1265
return await InteractionService.
PromptForStringAsync
(promptText, binding: PromptBinding.CreateDefault(input.Value), required: input.Required, cancellationToken: cancellationToken);
1285
return await InteractionService.
PromptForStringAsync
(
Commands\RenderCommand.cs (2)
369
var name = await InteractionService.
PromptForStringAsync
(
427
var answer = await InteractionService.
PromptForStringAsync
(
Commands\SecretSetCommand.cs (1)
93
?? await InteractionService.
PromptForStringAsync
(SecretCommandStrings.ValuePrompt,
Templating\TemplateEngineFactory.cs (1)
584
return await interactionService.
PromptForStringAsync
(
Aspire.Cli.Tests (1)
Commands\UpdateCommandTests.cs (1)
3708
=> _innerService.
PromptForStringAsync
(promptText, validator, isSecret, required, binding, logResponse, cancellationToken);