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)
714
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)
42
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
(
349
var topSelection = await interactionService.
PromptForSelectionAsync
(
366
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
(
270
return await interactionService.
PromptForSelectionAsync
(
Commands\PipelineCommandBase.cs (1)
811
var (value, displayText) = await InteractionService.
PromptForSelectionAsync
(
Commands\PublishCommand.cs (1)
24
return await interactionService.
PromptForSelectionAsync
(
Commands\UpdateCommand.cs (2)
149
channel = await InteractionService.
PromptForSelectionAsync
(
219
channel = 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)
196
useLocalhostTld = await interactionService.
PromptForSelectionAsync
(TemplatingStrings.UseLocalhostTld_Prompt, [TemplatingStrings.No, TemplatingStrings.Yes], choice => choice, cancellationToken) switch
216
useRedisCache = await interactionService.
PromptForSelectionAsync
(TemplatingStrings.UseRedisCache_Prompt, [TemplatingStrings.Yes, TemplatingStrings.No], choice => choice, cancellationToken) switch
237
var createTestProject = await interactionService.
PromptForSelectionAsync
(
251
testFramework = await interactionService.
PromptForSelectionAsync
(
277
xunitVersion = await interactionService.
PromptForSelectionAsync
(