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