10 references to MatchChoices
aspire (4)
Commands\AgentInitCommand.cs (3)
121
var selected = ConsoleInteractionService.
MatchChoices
(value, s_skillChoices, static name => name);
183
var selected = ConsoleInteractionService.
MatchChoices
(value, clients, static client => client.Id);
369
var matchedClients = ConsoleInteractionService.
MatchChoices
(requestedAgents, _clients, static client => client.Id);
Interaction\ConsoleInteractionService.cs (1)
862
var matched =
MatchChoices
(value, choicesList, choiceFormatter);
Aspire.Cli.Tests (6)
Interaction\ConsoleInteractionServiceTests.cs (5)
1556
var result = ConsoleInteractionService.
MatchChoices
("alpha,alpha,beta", choices, c => c);
1569
var result = ConsoleInteractionService.
MatchChoices
("all", choices, c => c);
1580
var result = ConsoleInteractionService.
MatchChoices
("none", choices, c => c);
1591
var result = ConsoleInteractionService.
MatchChoices
("alpha,nonexistent", choices, c => c);
1901
var result = ConsoleInteractionService.
MatchChoices
("alpha,BETA", choices, c => c);
TestServices\TestInteractionService.cs (1)
217
var matched = ConsoleInteractionService.
MatchChoices
(value, (bindingChoices ?? choices).ToArray(), choiceFormatter)