1 instantiation of ConfigSourceService
Aspire.Cli.Tests (1)
TestServices\TestConfigSourceServices.cs (1)
37return new ConfigSourceService(context, configurationService, environment ?? new TestEnvironment(), detector ?? new TestConfigSourceDetector(),
91 references to ConfigSourceService
aspire (10)
Backchannel\AppHostConnectionResolver.cs (1)
53ConfigSourceService configSources)
Commands\BaseCommand.cs (2)
67protected ConfigSourceService ConfigSources { get; } 188ConfigSourceService.DisplayGitTimeoutOutput(InteractionService, ex.GitOutput);
Commands\CommonCommandServices.cs (2)
21ConfigSourceService configSources) 31public ConfigSourceService ConfigSources { get; } = configSources;
Commands\InitCommand.cs (1)
116Options.Add(ConfigSourceService.s_useSourceOption);
Commands\NewCommand.cs (1)
108Options.Add(ConfigSourceService.s_useSourceOption);
Configuration\ConfigSourceService.cs (1)
31ILogger<ConfigSourceService> logger) : IDisposable
Program.cs (1)
320builder.Services.AddSingleton<ConfigSourceService>();
Projects\ProjectLocator.cs (1)
148ConfigSourceService configSources) : IProjectLocator
Aspire.Cli.Tests (81)
Backchannel\AppHostConnectionResolverTests.cs (1)
37using var sources = TestConfigSourceServices.Create(executionContext, git: git, interaction: interaction);
Commands\ConfigSourceCommandTests.cs (15)
64var service = provider.GetRequiredService<ConfigSourceService>(); 241var service = provider.GetRequiredService<ConfigSourceService>(); 336await provider.GetRequiredService<ConfigSourceService>().WaitForChecksAsync().DefaultTimeout(); 434await provider.GetRequiredService<ConfigSourceService>().WaitForChecksAsync().DefaultTimeout(); 435var service = provider.GetRequiredService<ConfigSourceService>(); 614var initial = TestConfigSourceServices.Create(workspace.CreateExecutionContext(), git: new TestConfigSourceRepository 633var sources = provider.GetRequiredService<ConfigSourceService>(); 671await provider.GetRequiredService<ConfigSourceService>().WaitForChecksAsync().DefaultTimeout(); 955await provider.GetRequiredService<ConfigSourceService>().WaitForChecksAsync().DefaultTimeout(); 981var sources = provider.GetRequiredService<ConfigSourceService>();
Configuration\ConfigSourceServiceGitTests.cs (4)
178using var service = TestConfigSourceServices.Create(workspace.CreateExecutionContext(), git: git, clock: clock, interaction: interaction); 410using var service = TestConfigSourceServices.Create(workspace.CreateExecutionContext(), 438using var service = TestConfigSourceServices.Create(workspace.CreateExecutionContext(), 691using var service = TestConfigSourceServices.Create(
Configuration\ConfigSourceServiceTests.cs (55)
67using var service = TestConfigSourceServices.Create(workspace.CreateExecutionContext(), git: git, globalSettingsFile: globalFile); 108using var service = TestConfigSourceServices.Create(workspace.CreateExecutionContext(), git: git, interaction: interaction, globalSettingsFile: globalFile); 195using var service = TestConfigSourceServices.Create(workspace.CreateExecutionContext(), git: git, interaction: interaction, globalSettingsFile: globalFile); 294using var service = TestConfigSourceServices.Create(workspace.CreateExecutionContext(), git: git, interaction: interaction, globalSettingsFile: globalFile); 335using (var first = TestConfigSourceServices.Create(context, git: git, clock: clock, globalSettingsFile: globalFile)) 348using (var service = TestConfigSourceServices.Create(context, git: git, clock: clock, interaction: interaction, globalSettingsFile: globalFile)) 359using var next = TestConfigSourceServices.Create(context, git: git, clock: clock, interaction: interaction, globalSettingsFile: globalFile); 392using var service = TestConfigSourceServices.Create(workspace.CreateExecutionContext(), git: git, interaction: interaction); 401using var stoppedService = TestConfigSourceServices.Create(workspace.CreateExecutionContext(), git: git); 431using var service = TestConfigSourceServices.Create(workspace.CreateExecutionContext(), git: git, interaction: interaction); 448using var service = TestConfigSourceServices.Create(workspace.CreateExecutionContext(), git: git); 474using var service = TestConfigSourceServices.Create(workspace.CreateExecutionContext(), git: git); 490using var service = TestConfigSourceServices.Create(workspace.CreateExecutionContext(), git: git); 547using var service = TestConfigSourceServices.Create(workspace.CreateExecutionContext(), git: git, interaction: interaction); 690var service = TestConfigSourceServices.Create(workspace.CreateExecutionContext(), git: git, detector: detector, 711var service = TestConfigSourceServices.Create(workspace.CreateExecutionContext(), git: git, 723Assert.Equivalent(detected ? new ConfigSource { Repository = ConfigSourceService.MicrosoftRepository, Path = AspireConfigFile.FileName } : null, 735var service = TestConfigSourceServices.Create(workspace.CreateExecutionContext(), git: git, 747var service = TestConfigSourceServices.Create(workspace.CreateExecutionContext(), git: git); 760var service = TestConfigSourceServices.Create(workspace.CreateExecutionContext(), 782var service = TestConfigSourceServices.Create(workspace.CreateExecutionContext(), git: git, 785Assert.Equivalent(accepted ? new ConfigSource { Repository = ConfigSourceService.MicrosoftRepository, Path = AspireConfigFile.FileName } : null, 797var service = TestConfigSourceServices.Create(workspace.CreateExecutionContext(), git: git, 820var service = TestConfigSourceServices.Create(workspace.CreateExecutionContext(), git: git); 843var service = TestConfigSourceServices.Create(workspace.CreateExecutionContext(), git: git); 879using var service = TestConfigSourceServices.Create(workspace.CreateExecutionContext(), git: git); 913using var service = TestConfigSourceServices.Create(workspace.CreateExecutionContext(), git: git); 941using var service = TestConfigSourceServices.Create(workspace.CreateExecutionContext(), git: git); 984var service = TestConfigSourceServices.Create(workspace.CreateExecutionContext(), git: git, interaction: interaction); 1014var service = TestConfigSourceServices.Create(context, git: git, interaction: interaction); 1032using var first = TestConfigSourceServices.Create(context, git: git, clock: clock); 1053using var service = TestConfigSourceServices.Create(context, git: git, clock: clock, interaction: interaction); 1081using var first = TestConfigSourceServices.Create(context, git: git); 1090using var service = TestConfigSourceServices.Create(context, git: git, interaction: interaction); 1109var first = TestConfigSourceServices.Create(context, git: git, clock: clock); 1120var next = TestConfigSourceServices.Create(context, git: git, clock: clock, interaction: interaction); 1140using var first = TestConfigSourceServices.Create(context, clock: clock); 1150using var service = TestConfigSourceServices.Create(context, git: git, clock: clock, interaction: interaction); 1164var service = TestConfigSourceServices.Create(workspace.CreateExecutionContext(), git: git); 1189var service = TestConfigSourceServices.Create(workspace.CreateExecutionContext(), git: git, interaction: interaction); 1223var service = TestConfigSourceServices.Create(workspace.CreateExecutionContext(), git: git); 1271var service = TestConfigSourceServices.Create(context, git: git); 1310var service = TestConfigSourceServices.Create(workspace.CreateExecutionContext(), git: git); 1327var service = TestConfigSourceServices.Create(workspace.CreateExecutionContext(), git: git); 1350var service = TestConfigSourceServices.Create(workspace.CreateExecutionContext(), git: git); 1390using var service = TestConfigSourceServices.Create(workspace.CreateExecutionContext(), git: git, 1423using var service = TestConfigSourceServices.Create(workspace.CreateExecutionContext(), git: git, environment: environment); 1444var service = TestConfigSourceServices.Create(workspace.CreateExecutionContext(), git: git, 1468using var first = TestConfigSourceServices.Create(context, git: git, clock: clock); 1481using var next = TestConfigSourceServices.Create(context, git: git, clock: clock, interaction: interaction); 1513var service = TestConfigSourceServices.Create(context, git: git, interaction: interaction); 1530var service = TestConfigSourceServices.Create(workspace.CreateExecutionContext(), git: git, interaction: interaction); 1551using var service = TestConfigSourceServices.Create(workspace.CreateExecutionContext(), git: git, detector: detector, interaction: interaction); 1580var service = TestConfigSourceServices.Create(workspace.CreateExecutionContext(aspireHomeDirectory: home)); 1596command.Options.Add(ConfigSourceService.s_useSourceOption);
TestServices\TestConfigSourceServices.cs (4)
29public static ConfigSourceService Create(CliExecutionContext context, IGitClient? git = null, 40NullLogger<ConfigSourceService>.Instance); 46using var service = Create(TestExecutionContextHelper.CreateExecutionContext(new DirectoryInfo(directory)), git: git, clock: clock); 63using var service = Create(TestExecutionContextHelper.CreateExecutionContext(project), git: git, clock: clock, interaction: interaction);
Utils\CliTestHelper.cs (2)
92services.AddSingleton<ConfigSourceService>(); 514return new ProjectLocator(logger, executionContext, environment, interactionService, configurationService, projectFactory, languageDiscovery, sdkInstaller, appHostCandidateFinder, telemetry, configuration, serviceProvider.GetRequiredService<ConfigSourceService>());