6 implementations of PromptForSelectionAsync
aspire (2)
Interaction\ConsoleInteractionService.cs (1)
83public async Task<T> PromptForSelectionAsync<T>(string promptText, IEnumerable<T> choices, Func<T, string> choiceFormatter, CancellationToken cancellationToken = default) where T : notnull
Interaction\ExtensionInteractionService.cs (1)
138public async Task<T> PromptForSelectionAsync<T>(string promptText, IEnumerable<T> choices, Func<T, string> choiceFormatter,
Aspire.Cli.Tests (4)
Commands\NewCommandTests.cs (1)
643public Task<T> PromptForSelectionAsync<T>(string promptText, IEnumerable<T> choices, Func<T, string> choiceFormatter, CancellationToken cancellationToken = default) where T : notnull
Commands\PublishCommandPromptingIntegrationTests.cs (1)
796public Task<T> PromptForSelectionAsync<T>(string promptText, IEnumerable<T> choices, Func<T, string> choiceFormatter, CancellationToken cancellationToken = default) 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)
38public Task<T> PromptForSelectionAsync<T>(string promptText, IEnumerable<T> choices, Func<T, string> choiceFormatter, CancellationToken cancellationToken = default) where T : notnull
16 references to PromptForSelectionAsync
aspire (16)
Commands\AddCommand.cs (3)
292var selection = await interactionService.PromptForSelectionAsync( 343var topSelection = await interactionService.PromptForSelectionAsync( 354var selectedIntegration = await interactionService.PromptForSelectionAsync(
Commands\NewCommand.cs (3)
183var selection = await interactionService.PromptForSelectionAsync( 237var topSelection = await interactionService.PromptForSelectionAsync( 268return await interactionService.PromptForSelectionAsync(
Commands\PublishCommand.cs (1)
23return await interactionService.PromptForSelectionAsync(
Commands\PublishCommandBase.cs (1)
571var selectedChoice = await _interactionService.PromptForSelectionAsync(
Commands\UpdateCommand.cs (1)
42var channel = await _interactionService.PromptForSelectionAsync(UpdateCommandStrings.SelectChannelPrompt, channels, (c) => c.Name, cancellationToken);
Projects\ProjectLocator.cs (1)
187selectedAppHost = await interactionService.PromptForSelectionAsync(
Templating\DotNetTemplateFactory.cs (6)
124useRedisCache = await interactionService.PromptForSelectionAsync(TemplatingStrings.UseRedisCache_Prompt, [TemplatingStrings.Yes, TemplatingStrings.No], choice => choice, cancellationToken) switch 145var createTestProject = await interactionService.PromptForSelectionAsync( 159testFramework = await interactionService.PromptForSelectionAsync( 185xunitVersion = await interactionService.PromptForSelectionAsync( 438var choice = await interactionService.PromptForSelectionAsync( 452var updateChoice = await interactionService.PromptForSelectionAsync(