8 implementations of PromptForSelectionAsync
aspire (2)
Interaction\ConsoleInteractionService.cs (1)
164public async Task<T> PromptForSelectionAsync<T>(string promptText, IEnumerable<T> choices, Func<T, string> choiceFormatter, CancellationToken cancellationToken = default) where T : notnull
Interaction\ExtensionInteractionService.cs (1)
219public async Task<T> PromptForSelectionAsync<T>(string promptText, IEnumerable<T> choices, Func<T, string> choiceFormatter,
Aspire.Cli.Tests (6)
Commands\NewCommandTests.cs (1)
1372public Task<T> PromptForSelectionAsync<T>(string promptText, IEnumerable<T> choices, Func<T, string> choiceFormatter, CancellationToken cancellationToken = default) where T : notnull
Commands\PublishCommandPromptingIntegrationTests.cs (1)
893public Task<T> PromptForSelectionAsync<T>(string promptText, IEnumerable<T> choices, Func<T, string> choiceFormatter, CancellationToken cancellationToken = default) where T : notnull
Commands\UpdateCommandTests.cs (1)
1054public Task<T> PromptForSelectionAsync<T>(string promptText, IEnumerable<T> choices, Func<T, string> choiceFormatter, CancellationToken cancellationToken = default) where T : notnull
Templating\DotNetTemplateFactoryTests.cs (1)
457public Task<T> PromptForSelectionAsync<T>(string prompt, IEnumerable<T> choices, Func<T, string> displaySelector, CancellationToken cancellationToken) where T : notnull
TestServices\TestConsoleInteractionService.cs (1)
49public Task<T> PromptForSelectionAsync<T>(string promptText, IEnumerable<T> choices, Func<T, string> choiceFormatter, CancellationToken cancellationToken = default) where T : notnull
TestServices\TestExtensionInteractionService.cs (1)
47public Task<T> PromptForSelectionAsync<T>(string promptText, IEnumerable<T> choices, Func<T, string> choiceFormatter, CancellationToken cancellationToken = default) where T : notnull
30 references to PromptForSelectionAsync
aspire (29)
Backchannel\AppHostConnectionResolver.cs (1)
190var selectedDisplay = await interactionService.PromptForSelectionAsync(
Commands\AddCommand.cs (3)
370var selection = await interactionService.PromptForSelectionAsync( 437var topSelection = await interactionService.PromptForSelectionAsync( 454var selectedIntegration = await interactionService.PromptForSelectionAsync(
Commands\ConfigCommand.cs (3)
56var subcommand = await _interactionService.PromptForSelectionAsync( 169var isGlobal = await InteractionService.PromptForSelectionAsync( 365var isGlobal = await InteractionService.PromptForSelectionAsync(
Commands\InitCommand.cs (1)
272var selection = await InteractionService.PromptForSelectionAsync(
Commands\NewCommand.cs (4)
150var selected = await InteractionService.PromptForSelectionAsync( 424var selection = await interactionService.PromptForSelectionAsync( 468var topSelection = await interactionService.PromptForSelectionAsync( 504return await interactionService.PromptForSelectionAsync(
Commands\PipelineCommandBase.cs (1)
801var (value, displayText) = await InteractionService.PromptForSelectionAsync(
Commands\PublishCommand.cs (1)
26return await interactionService.PromptForSelectionAsync(
Commands\RenderCommand.cs (1)
56var choice = await InteractionService.PromptForSelectionAsync(
Commands\UpdateCommand.cs (2)
179channel = await InteractionService.PromptForSelectionAsync( 277channel = await InteractionService.PromptForSelectionAsync(
Packaging\NuGetConfigPrompter.cs (2)
51var choice = await _interactionService.PromptForSelectionAsync( 65var updateChoice = await _interactionService.PromptForSelectionAsync(
Projects\LanguageService.cs (1)
93var selected = await _interactionService.PromptForSelectionAsync(
Projects\ProjectLocator.cs (2)
200projectFile = await interactionService.PromptForSelectionAsync( 280MultipleAppHostProjectsFoundBehavior.Prompt => await interactionService.PromptForSelectionAsync(InteractionServiceStrings.SelectAppHostToUse, results.BuildableAppHost, projectFile => $"{projectFile.Name.EscapeMarkup()} ({Path.GetRelativePath(executionContext.WorkingDirectory.FullName, projectFile.FullName).EscapeMarkup()})", cancellationToken),
Projects\SolutionLocator.cs (1)
40var selectedSolution = await interactionService.PromptForSelectionAsync(
Templating\CliTemplateFactory.EmptyTemplate.cs (1)
118useLocalhostTld = await _interactionService.PromptForSelectionAsync(
Templating\DotNetTemplateFactory.cs (5)
269useLocalhostTld = await interactionService.PromptForSelectionAsync(TemplatingStrings.UseLocalhostTld_Prompt, [TemplatingStrings.No, TemplatingStrings.Yes], choice => choice, cancellationToken) switch 289useRedisCache = await interactionService.PromptForSelectionAsync(TemplatingStrings.UseRedisCache_Prompt, [TemplatingStrings.Yes, TemplatingStrings.No], choice => choice, cancellationToken) switch 310var createTestProject = await interactionService.PromptForSelectionAsync( 324testFramework = await interactionService.PromptForSelectionAsync( 350xunitVersion = await interactionService.PromptForSelectionAsync(
Aspire.Cli.Tests (1)
Commands\UpdateCommandTests.cs (1)
1055=> _innerService.PromptForSelectionAsync(promptText, choices, choiceFormatter, cancellationToken);