8 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 (6)
Commands\NewCommandTests.cs (1)
875public 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
Commands\UpdateCommandTests.cs (1)
956public Task<T> PromptForSelectionAsync<T>(string promptText, IEnumerable<T> choices, Func<T, string> choiceFormatter, CancellationToken cancellationToken = default) where T : notnull
Templating\DotNetTemplateFactoryTests.cs (1)
398public Task<T> PromptForSelectionAsync<T>(string prompt, IEnumerable<T> choices, Func<T, string> displaySelector, CancellationToken cancellationToken) where T : notnull
TestServices\TestConsoleInteractionService.cs (1)
42public 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
25 references to PromptForSelectionAsync
aspire (24)
Commands\AddCommand.cs (3)
301var selection = await interactionService.PromptForSelectionAsync( 362var topSelection = await interactionService.PromptForSelectionAsync( 379var 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)
244var selection = await InteractionService.PromptForSelectionAsync(
Commands\NewCommand.cs (3)
211var selection = await interactionService.PromptForSelectionAsync( 255var topSelection = await interactionService.PromptForSelectionAsync( 290return await interactionService.PromptForSelectionAsync(
Commands\PipelineCommandBase.cs (1)
811var (value, displayText) = await InteractionService.PromptForSelectionAsync(
Commands\PublishCommand.cs (1)
24return await interactionService.PromptForSelectionAsync(
Commands\UpdateCommand.cs (2)
172channel = await InteractionService.PromptForSelectionAsync( 259channel = await InteractionService.PromptForSelectionAsync(
Packaging\NuGetConfigPrompter.cs (2)
51var choice = await _interactionService.PromptForSelectionAsync( 65var updateChoice = await _interactionService.PromptForSelectionAsync(
Projects\ProjectLocator.cs (2)
310projectFile = await interactionService.PromptForSelectionAsync( 403MultipleAppHostProjectsFoundBehavior.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)
217useLocalhostTld = await interactionService.PromptForSelectionAsync(TemplatingStrings.UseLocalhostTld_Prompt, [TemplatingStrings.No, TemplatingStrings.Yes], choice => choice, cancellationToken) switch 237useRedisCache = await interactionService.PromptForSelectionAsync(TemplatingStrings.UseRedisCache_Prompt, [TemplatingStrings.Yes, TemplatingStrings.No], choice => choice, cancellationToken) switch 258var createTestProject = await interactionService.PromptForSelectionAsync( 272testFramework = await interactionService.PromptForSelectionAsync( 298xunitVersion = await interactionService.PromptForSelectionAsync(
Aspire.Cli.Tests (1)
Commands\UpdateCommandTests.cs (1)
957=> _innerService.PromptForSelectionAsync(promptText, choices, choiceFormatter, cancellationToken);