8 implementations of PromptForSelectionAsync
aspire (2)
Interaction\ConsoleInteractionService.cs (1)
286public async Task<T> PromptForSelectionAsync<T>(string promptText, IEnumerable<T> choices, Func<T, string> choiceFormatter, PromptBinding<string?>? binding = null, bool echoSelected = true, CancellationToken cancellationToken = default) where T : notnull
Interaction\ExtensionInteractionService.cs (1)
301public async Task<T> PromptForSelectionAsync<T>(string promptText, IEnumerable<T> choices, Func<T, string> choiceFormatter,
Aspire.Cli.Tests (6)
Commands\PublishCommandPromptingIntegrationTests.cs (1)
1180public Task<T> PromptForSelectionAsync<T>(string promptText, IEnumerable<T> choices, Func<T, string> choiceFormatter, PromptBinding<string?>? binding = null, bool echoSelected = true, CancellationToken cancellationToken = default) where T : notnull
Commands\UpdateCommandTests.cs (1)
3526public Task<T> PromptForSelectionAsync<T>(string promptText, IEnumerable<T> choices, Func<T, string> choiceFormatter, PromptBinding<string?>? binding = null, bool echoSelected = true, CancellationToken cancellationToken = default) where T : notnull
Projects\ExtensionGuestLauncherTests.cs (1)
169public Task<T> PromptForSelectionAsync<T>(string promptText, IEnumerable<T> choices, Func<T, string> choiceFormatter, PromptBinding<string?>? binding = null, bool echoSelected = true, CancellationToken cancellationToken = default) where T : notnull => throw new NotImplementedException();
Templating\DotNetTemplateFactoryTests.cs (1)
376public Task<T> PromptForSelectionAsync<T>(string prompt, IEnumerable<T> choices, Func<T, string> displaySelector, PromptBinding<string?>? binding = null, bool echoSelected = true, CancellationToken cancellationToken = default) where T : notnull
TestServices\TestExtensionInteractionService.cs (1)
71public Task<T> PromptForSelectionAsync<T>(string promptText, IEnumerable<T> choices, Func<T, string> choiceFormatter, PromptBinding<string?>? binding = null, bool echoSelected = true, CancellationToken cancellationToken = default) where T : notnull
TestServices\TestInteractionService.cs (1)
168public Task<T> PromptForSelectionAsync<T>(string promptText, IEnumerable<T> choices, Func<T, string> choiceFormatter, PromptBinding<string?>? binding = null, bool echoSelected = true, CancellationToken cancellationToken = default) where T : notnull
27 references to PromptForSelectionAsync
aspire (26)
Backchannel\AppHostConnectionResolver.cs (1)
340var selectedDisplay = await interactionService.PromptForSelectionAsync(
Commands\AddCommand.cs (3)
631var selection = await interactionService.PromptForSelectionAsync( 724var topSelection = await interactionService.PromptForSelectionAsync( 741var selectedIntegration = await interactionService.PromptForSelectionAsync(
Commands\ConfigCommand.cs (3)
49var subcommand = await InteractionService.PromptForSelectionAsync( 155var isGlobal = await InteractionService.PromptForSelectionAsync( 393var isGlobal = await InteractionService.PromptForSelectionAsync(
Commands\NewCommand.cs (4)
171var selected = await InteractionService.PromptForSelectionAsync( 715var selection = await interactionService.PromptForSelectionAsync( 759var topSelection = await interactionService.PromptForSelectionAsync( 801return await interactionService.PromptForSelectionAsync(
Commands\PipelineCommandBase.cs (1)
1187var (value, displayText) = await InteractionService.PromptForSelectionAsync(
Commands\PublishCommand.cs (1)
26return await interactionService.PromptForSelectionAsync(
Commands\RenderCommand.cs (3)
131var choice = await InteractionService.PromptForSelectionAsync( 315var selected = await InteractionService.PromptForSelectionAsync( 328var selected = await InteractionService.PromptForSelectionAsync(
Commands\TerminalAttachCommand.cs (1)
245var picked = await _interactionService.PromptForSelectionAsync(
Commands\UpdateCommand.cs (2)
330channel = await InteractionService.PromptForSelectionAsync( 705channel = await InteractionService.PromptForSelectionAsync(
Projects\LanguageService.cs (1)
96var selected = await _interactionService.PromptForSelectionAsync(
Projects\ProjectLocator.cs (2)
973projectFile = await interactionService.PromptForSelectionAsync( 1160MultipleAppHostProjectsFoundBehavior.Prompt => await interactionService.PromptForSelectionAsync(InteractionServiceStrings.SelectAppHostToUse, results.BuildableAppHost.Select(c => c.AppHostFile).ToList(), projectFile => $"{projectFile.Name.EscapeMarkup()} ({Path.GetRelativePath(executionContext.WorkingDirectory.FullName, projectFile.FullName).EscapeMarkup()})", cancellationToken: cancellationToken),
Projects\SolutionLocator.cs (1)
40var selectedSolution = await interactionService.PromptForSelectionAsync(
Templating\DotNetTemplateFactory.cs (2)
342var testFramework = await interactionService.PromptForSelectionAsync( 367var xunitVersion = await interactionService.PromptForSelectionAsync(
Templating\OutputPathHelper.cs (1)
103var selectedChoice = await interactionService.PromptForSelectionAsync(
Aspire.Cli.Tests (1)
Commands\UpdateCommandTests.cs (1)
3527=> _innerService.PromptForSelectionAsync(promptText, choices, choiceFormatter, binding, echoSelected, cancellationToken);