8 implementations of PromptForSelectionAsync
aspire (2)
Interaction\ConsoleInteractionService.cs (1)
286
public 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)
318
public async Task<T>
PromptForSelectionAsync
<T>(string promptText, IEnumerable<T> choices, Func<T, string> choiceFormatter,
Aspire.Cli.Tests (6)
Commands\PublishCommandPromptingIntegrationTests.cs (1)
1180
public 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)
3713
public 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)
232
public 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)
375
public 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)
81
public 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)
179
public 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
28 references to PromptForSelectionAsync
aspire (27)
Backchannel\AppHostConnectionResolver.cs (1)
366
var selectedDisplay = await interactionService.
PromptForSelectionAsync
(
Commands\AgentInitCommand.cs (2)
270
_ => await InteractionService.
PromptForSelectionAsync
(
516
scope = await InteractionService.
PromptForSelectionAsync
(
Commands\ConfigCommand.cs (3)
50
var subcommand = await InteractionService.
PromptForSelectionAsync
(
156
var isGlobal = await InteractionService.
PromptForSelectionAsync
(
406
var isGlobal = await InteractionService.
PromptForSelectionAsync
(
Commands\NewCommand.cs (4)
196
var selected = await InteractionService.
PromptForSelectionAsync
(
935
var selection = await interactionService.
PromptForSelectionAsync
(
979
var topSelection = await interactionService.
PromptForSelectionAsync
(
1021
return await interactionService.
PromptForSelectionAsync
(
Commands\PipelineCommandBase.cs (1)
1257
var (value, displayText) = await InteractionService.
PromptForSelectionAsync
(
Commands\PublishCommand.cs (1)
27
return await interactionService.
PromptForSelectionAsync
(
Commands\RenderCommand.cs (3)
132
var choice = await InteractionService.
PromptForSelectionAsync
(
316
var selected = await InteractionService.
PromptForSelectionAsync
(
329
var selected = await InteractionService.
PromptForSelectionAsync
(
Commands\UpdateCommand.cs (2)
415
channel = await InteractionService.
PromptForSelectionAsync
(
823
channel = await InteractionService.
PromptForSelectionAsync
(
Interaction\IInteractionService.cs (1)
33
=>
PromptForSelectionAsync
(promptText, choices, choiceFormatter, binding, echoSelected, cancellationToken);
Projects\LanguageService.cs (1)
96
var selected = await _interactionService.
PromptForSelectionAsync
(
Projects\ProjectLocator.cs (2)
1020
projectFile = await interactionService.
PromptForSelectionAsync
(
1216
MultipleAppHostProjectsFoundBehavior.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)
40
var selectedSolution = await interactionService.
PromptForSelectionAsync
(
Templating\DotNetTemplateFactory.cs (2)
347
var testFramework = await interactionService.
PromptForSelectionAsync
(
372
var xunitVersion = await interactionService.
PromptForSelectionAsync
(
Templating\OutputPathHelper.cs (1)
103
var selectedChoice = await interactionService.
PromptForSelectionAsync
(
Templating\TemplateEngineFactory.cs (2)
576
var selected = await interactionService.
PromptForSelectionAsync
(
581
return await interactionService.
PromptForSelectionAsync
(prompt, keys, FormatChoice, cancellationToken: cancellationToken);
Aspire.Cli.Tests (1)
Commands\UpdateCommandTests.cs (1)
3714
=> _innerService.
PromptForSelectionAsync
(promptText, choices, choiceFormatter, binding, echoSelected, cancellationToken);