1 implementation of PromptForSelectionAsync
aspire (1)
Interaction\InteractionService.cs (1)
55
public 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)
255
var version = await interactionService.
PromptForSelectionAsync
(
265
var selectedIntegration = await interactionService.
PromptForSelectionAsync
(
Commands\NewCommand.cs (2)
107
return await interactionService.
PromptForSelectionAsync
(
139
return await interactionService.
PromptForSelectionAsync
(
Commands\PublishCommand.cs (1)
24
return await interactionService.
PromptForSelectionAsync
(
Projects\ProjectLocator.cs (1)
153
selectedAppHost = await interactionService.
PromptForSelectionAsync
(
Templating\DotNetTemplateFactory.cs (4)
99
useRedisCache = await interactionService.
PromptForSelectionAsync
("Use Redis Cache", ["Yes", "No"], choice => choice, cancellationToken) switch
120
var createTestProject = await interactionService.
PromptForSelectionAsync
(
134
testFramework = await interactionService.
PromptForSelectionAsync
(
160
xunitVersion = await interactionService.
PromptForSelectionAsync
(