1 implementation of PromptForSelectionAsync
aspire (1)
Interaction\InteractionService.cs (1)
55public async Task<T> PromptForSelectionAsync<T>(string promptText, IEnumerable<T> choices, Func<T, string> choiceFormatter, CancellationToken cancellationToken = default) where T : notnull
10 references to PromptForSelectionAsync
aspire (10)
Commands\AddCommand.cs (2)
255var version = await interactionService.PromptForSelectionAsync( 265var selectedIntegration = await interactionService.PromptForSelectionAsync(
Commands\NewCommand.cs (2)
107return await interactionService.PromptForSelectionAsync( 139return await interactionService.PromptForSelectionAsync(
Commands\PublishCommand.cs (1)
24return await interactionService.PromptForSelectionAsync(
Projects\ProjectLocator.cs (1)
153selectedAppHost = await interactionService.PromptForSelectionAsync(
Templating\DotNetTemplateFactory.cs (4)
99useRedisCache = await interactionService.PromptForSelectionAsync("Use Redis Cache", ["Yes", "No"], choice => choice, cancellationToken) switch 120var createTestProject = await interactionService.PromptForSelectionAsync( 134testFramework = await interactionService.PromptForSelectionAsync( 160xunitVersion = await interactionService.PromptForSelectionAsync(