7 implementations of PromptForSelectionAsync
aspire (2)
Interaction\ConsoleInteractionService.cs (1)
92
public async Task<T>
PromptForSelectionAsync
<T>(string promptText, IEnumerable<T> choices, Func<T, string> choiceFormatter, CancellationToken cancellationToken = default) where T : notnull
Interaction\ExtensionInteractionService.cs (1)
163
public async Task<T>
PromptForSelectionAsync
<T>(string promptText, IEnumerable<T> choices, Func<T, string> choiceFormatter,
Aspire.Cli.Tests (5)
Commands\NewCommandTests.cs (1)
644
public Task<T>
PromptForSelectionAsync
<T>(string promptText, IEnumerable<T> choices, Func<T, string> choiceFormatter, CancellationToken cancellationToken = default) where T : notnull
Commands\PublishCommandPromptingIntegrationTests.cs (1)
934
public Task<T>
PromptForSelectionAsync
<T>(string promptText, IEnumerable<T> choices, Func<T, string> choiceFormatter, CancellationToken cancellationToken = default) where T : notnull
Templating\DotNetTemplateFactoryTests.cs (1)
368
public Task<T>
PromptForSelectionAsync
<T>(string prompt, IEnumerable<T> choices, Func<T, string> displaySelector, CancellationToken cancellationToken) where T : notnull
TestServices\TestConsoleInteractionService.cs (1)
34
public Task<T>
PromptForSelectionAsync
<T>(string promptText, IEnumerable<T> choices, Func<T, string> choiceFormatter, CancellationToken cancellationToken = default) where T : notnull
TestServices\TestExtensionInteractionService.cs (1)
40
public Task<T>
PromptForSelectionAsync
<T>(string promptText, IEnumerable<T> choices, Func<T, string> choiceFormatter, CancellationToken cancellationToken = default) where T : notnull
24 references to PromptForSelectionAsync
aspire (24)
Commands\AddCommand.cs (3)
294
var selection = await interactionService.
PromptForSelectionAsync
(
345
var topSelection = await interactionService.
PromptForSelectionAsync
(
356
var selectedIntegration = await interactionService.
PromptForSelectionAsync
(
Commands\ConfigCommand.cs (3)
56
var subcommand = await _interactionService.
PromptForSelectionAsync
(
169
var isGlobal = await InteractionService.
PromptForSelectionAsync
(
280
var isGlobal = await InteractionService.
PromptForSelectionAsync
(
Commands\InitCommand.cs (1)
227
var selection = await InteractionService.
PromptForSelectionAsync
(
Commands\NewCommand.cs (3)
181
var selection = await interactionService.
PromptForSelectionAsync
(
235
var topSelection = await interactionService.
PromptForSelectionAsync
(
266
return await interactionService.
PromptForSelectionAsync
(
Commands\PipelineCommandBase.cs (1)
783
var (value, displayText) = await InteractionService.
PromptForSelectionAsync
(
Commands\PublishCommand.cs (1)
24
return await interactionService.
PromptForSelectionAsync
(
Commands\UpdateCommand.cs (2)
112
var channel = await InteractionService.
PromptForSelectionAsync
(
142
quality = await InteractionService.
PromptForSelectionAsync
(
Packaging\NuGetConfigPrompter.cs (2)
51
var choice = await _interactionService.
PromptForSelectionAsync
(
65
var updateChoice = await _interactionService.
PromptForSelectionAsync
(
Projects\ProjectLocator.cs (2)
309
projectFile = await interactionService.
PromptForSelectionAsync
(
402
MultipleAppHostProjectsFoundBehavior.Prompt => await interactionService.
PromptForSelectionAsync
(InteractionServiceStrings.SelectAppHostToUse, results.BuildableAppHost, projectFile => $"{projectFile.Name} ({Path.GetRelativePath(executionContext.WorkingDirectory.FullName, projectFile.FullName)})", cancellationToken),
Projects\SolutionLocator.cs (1)
39
var selectedSolution = await interactionService.
PromptForSelectionAsync
(
Templating\DotNetTemplateFactory.cs (5)
195
useLocalhostTld = await interactionService.
PromptForSelectionAsync
(TemplatingStrings.UseLocalhostTld_Prompt, [TemplatingStrings.No, TemplatingStrings.Yes], choice => choice, cancellationToken) switch
215
useRedisCache = await interactionService.
PromptForSelectionAsync
(TemplatingStrings.UseRedisCache_Prompt, [TemplatingStrings.Yes, TemplatingStrings.No], choice => choice, cancellationToken) switch
236
var createTestProject = await interactionService.
PromptForSelectionAsync
(
250
testFramework = await interactionService.
PromptForSelectionAsync
(
276
xunitVersion = await interactionService.
PromptForSelectionAsync
(