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