11 references to MatchChoices
aspire (5)
Commands\AgentInitCommand.cs (4)
127
var selected = ConsoleInteractionService.
MatchChoices
(value, s_skillChoices, static name => name);
162
var selected = ConsoleInteractionService.
MatchChoices
(value, clients, static client => client.Id);
343
var matchedClients = ConsoleInteractionService.
MatchChoices
(requestedAgents, _clients, static client => client.Id);
401
ConsoleInteractionService.
MatchChoices
(requestedSkills ?? CommonAgentApplicators.AspireSkillName,
Interaction\ConsoleInteractionService.cs (1)
947
var matched =
MatchChoices
(value, choicesList, choiceFormatter);
Aspire.Cli.Tests (6)
Interaction\ConsoleInteractionServiceTests.cs (5)
2215
var result = ConsoleInteractionService.
MatchChoices
("alpha,alpha,beta", choices, c => c);
2228
var result = ConsoleInteractionService.
MatchChoices
("all", choices, c => c);
2239
var result = ConsoleInteractionService.
MatchChoices
("none", choices, c => c);
2250
var result = ConsoleInteractionService.
MatchChoices
("alpha,nonexistent", choices, c => c);
2560
var result = ConsoleInteractionService.
MatchChoices
("alpha,BETA", choices, c => c);
TestServices\TestInteractionService.cs (1)
225
var matched = ConsoleInteractionService.
MatchChoices
(value, (bindingChoices ?? choices).ToArray(), choiceFormatter)