8 implementations of PromptForSelectionAsync
aspire (2)
Interaction\ConsoleInteractionService.cs (1)
129public 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)
914public Task<T> PromptForSelectionAsync<T>(string promptText, IEnumerable<T> choices, Func<T, string> choiceFormatter, CancellationToken cancellationToken = default) where T : notnull
Commands\PublishCommandPromptingIntegrationTests.cs (1)
888public Task<T> PromptForSelectionAsync<T>(string promptText, IEnumerable<T> choices, Func<T, string> choiceFormatter, CancellationToken cancellationToken = default) where T : notnull
Commands\UpdateCommandTests.cs (1)
957public Task<T> PromptForSelectionAsync<T>(string promptText, IEnumerable<T> choices, Func<T, string> choiceFormatter, CancellationToken cancellationToken = default) where T : notnull
Templating\DotNetTemplateFactoryTests.cs (1)
412public 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
28 references to PromptForSelectionAsync
aspire (27)
Backchannel\AppHostConnectionResolver.cs (2)
125var selectedDisplay = await interactionService.PromptForSelectionAsync( 148var selectedDisplay = await interactionService.PromptForSelectionAsync(
Commands\AddCommand.cs (3)
344var selection = await interactionService.PromptForSelectionAsync( 411var topSelection = await interactionService.PromptForSelectionAsync( 428var selectedIntegration = await interactionService.PromptForSelectionAsync(
Commands\ConfigCommand.cs (3)
54var subcommand = await _interactionService.PromptForSelectionAsync( 167var isGlobal = await InteractionService.PromptForSelectionAsync( 328var isGlobal = await InteractionService.PromptForSelectionAsync(
Commands\InitCommand.cs (1)
285var selection = await InteractionService.PromptForSelectionAsync(
Commands\NewCommand.cs (3)
301var selection = await interactionService.PromptForSelectionAsync( 345var topSelection = await interactionService.PromptForSelectionAsync( 380return await interactionService.PromptForSelectionAsync(
Commands\PipelineCommandBase.cs (1)
804var (value, displayText) = await InteractionService.PromptForSelectionAsync(
Commands\PublishCommand.cs (1)
26return await interactionService.PromptForSelectionAsync(
Commands\UpdateCommand.cs (2)
170channel = await InteractionService.PromptForSelectionAsync( 266channel = 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)
199projectFile = await interactionService.PromptForSelectionAsync( 280MultipleAppHostProjectsFoundBehavior.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)
239useLocalhostTld = await interactionService.PromptForSelectionAsync(TemplatingStrings.UseLocalhostTld_Prompt, [TemplatingStrings.No, TemplatingStrings.Yes], choice => choice, cancellationToken) switch 259useRedisCache = await interactionService.PromptForSelectionAsync(TemplatingStrings.UseRedisCache_Prompt, [TemplatingStrings.Yes, TemplatingStrings.No], choice => choice, cancellationToken) switch 280var createTestProject = await interactionService.PromptForSelectionAsync( 294testFramework = await interactionService.PromptForSelectionAsync( 320xunitVersion = await interactionService.PromptForSelectionAsync(
Aspire.Cli.Tests (1)
Commands\UpdateCommandTests.cs (1)
958=> _innerService.PromptForSelectionAsync(promptText, choices, choiceFormatter, cancellationToken);