14 references to IntegrationPackageSearchService
aspire (12)
Commands\AddCommand.cs (4)
28private readonly IntegrationPackageSearchService _integrationPackageSearchService; 55public AddCommand(IProjectLocator projectLocator, IntegrationPackageSearchService integrationPackageSearchService, IAddCommandPrompter prompter, IDotNetSdkInstaller sdkInstaller, ICliHostEnvironment hostEnvironment, IAppHostProjectFactory projectFactory, ProfilingTelemetry profilingTelemetry, CommonCommandServices services) 206var packagesWithShortName = packagesWithChannels.Select(IntegrationPackageSearchService.GenerateFriendlyName).OrderBy(p => p.FriendlyName, new CommunityToolkitFirstComparer()).ToList(); 271filteredPackagesWithShortName = IntegrationPackageSearchService.GetIntegrationSearchMatches(packagesWithShortName, integrationName)
Commands\IntegrationSearchCommand.cs (7)
21private readonly IntegrationPackageSearchService _integrationPackageSearchService; 36IntegrationPackageSearchService integrationPackageSearchService, 100.Select(IntegrationPackageSearchService.GenerateFriendlyName) 153: IntegrationPackageSearchService.GetIntegrationSearchMatches(packages, searchTerm)) 155.Select(IntegrationPackageSearchService.SelectPreferredIntegrationPackage); 228IntegrationPackageSearchService integrationPackageSearchService, 246IntegrationPackageSearchService integrationPackageSearchService,
Program.cs (1)
619builder.Services.AddTransient<IntegrationPackageSearchService>();
Aspire.Cli.Tests (2)
Commands\AddCommandTests.cs (1)
2182var result = IntegrationPackageSearchService.GenerateFriendlyName((package, null!)); // Null is OK for this test.
Utils\CliTestHelper.cs (1)
280services.AddTransient<IntegrationPackageSearchService>();