12 instantiations of ConfigurationService
aspire (1)
Program.cs (1)
481
builder.Services.AddSingleton<IConfigurationService>(sp => new
ConfigurationService
(
Aspire.Cli.Tests (11)
Caching\AppHostInfoDiskCacheTests.cs (1)
30
var configurationService = new
ConfigurationService
(configuration, ctx, globalSettingsFile, NullLogger<ConfigurationService>.Instance);
Configuration\ConfigurationServiceTests.cs (2)
39
var service = new
ConfigurationService
(configuration, executionContext, globalSettingsFile, logger);
732
var reader = new
ConfigurationService
(configuration, workspace.CreateExecutionContext(),
Projects\ProjectLocatorTests.cs (7)
594
var configurationService = new
ConfigurationService
(new ConfigurationBuilder().Build(), executionContext, globalSettingsFile, NullLogger<ConfigurationService>.Instance);
1528
var configurationService = new
ConfigurationService
(config, executionContext, globalSettingsFile, NullLogger<ConfigurationService>.Instance);
1564
var configurationService = new
ConfigurationService
(config, executionContext, globalSettingsFile, NullLogger<ConfigurationService>.Instance);
1615
var configurationService = new
ConfigurationService
(new ConfigurationBuilder().Build(), executionContext, globalSettingsFile, NullLogger<ConfigurationService>.Instance);
1684
var configurationService = new
ConfigurationService
(new ConfigurationBuilder().Build(), executionContext, globalSettingsFile, NullLogger<ConfigurationService>.Instance);
1739
var configurationService = new
ConfigurationService
(new ConfigurationBuilder().Build(), executionContext, globalSettingsFile, NullLogger<ConfigurationService>.Instance);
1791
var configurationService = new
ConfigurationService
(config, executionContext, globalSettingsFile, NullLogger<ConfigurationService>.Instance);
Utils\CliTestHelper.cs (1)
485
return new
ConfigurationService
(configuration, executionContext, GetGlobalSettingsFile(WorkingDirectory), NullLogger<ConfigurationService>.Instance);
47 references to ConfigurationService
aspire (5)
Configuration\ConfigurationService.cs (1)
16
internal sealed class ConfigurationService(IConfiguration configuration, CliExecutionContext executionContext, FileInfo globalSettingsFile, ILogger<
ConfigurationService
> logger) : IConfigurationService
Program.cs (1)
485
sp.GetRequiredService<ILogger<
ConfigurationService
>>()));
Projects\ProjectLocator.cs (3)
1344
await
ConfigurationService
.SetConfigurationInFileAsync(settingsFile.FullName, AspireConfigAppHostPathKey, relativePathToProjectFile, cancellationToken);
1350
await
ConfigurationService
.SetConfigurationInFileAsync(settingsFile.FullName, "appHost.language", language.LanguageId.Value, cancellationToken);
1361
await
ConfigurationService
.SetConfigurationInFileAsync(settingsFile.FullName, "sdk.version", inheritedSdkVersion, cancellationToken);
Aspire.Cli.Tests (42)
Caching\AppHostInfoDiskCacheTests.cs (2)
30
var
configurationService = new ConfigurationService(configuration, ctx, globalSettingsFile, NullLogger<
ConfigurationService
>.Instance);
Commands\ConfigSourceCommandTests.cs (11)
155
await
ConfigurationService
.SetConfigurationInFileAsync(
157
await
ConfigurationService
.SetConfigurationInFileAsync(
340
await
ConfigurationService
.SetConfigurationInFileAsync(path, "skillSources.team.repository", "example/local");
341
await
ConfigurationService
.SetConfigurationInFileAsync(path, "appHost.path", "apphost.cs");
434
await
ConfigurationService
.SetConfigurationInFileAsync(rootPath, "appHost.path", "AppHost/apphost.cs");
521
await
ConfigurationService
.SetConfigurationInFileAsync(parentPath, "appHost.path", "selected-project/apphost.cs");
827
await
ConfigurationService
.SetConfigurationInFileAsync(parentPath, "appHost.path", "A/apphost.cs");
863
await
ConfigurationService
.SetConfigurationInFileAsync(
898
await
ConfigurationService
.SetConfigurationInFileAsync(parentPath, "appHost.path", "selected/AppHost/apphost.cs");
1068
await
ConfigurationService
.SetConfigurationInFileAsync(path, "skillSources.team.repository", "example/local");
1129
await
ConfigurationService
.SetConfigurationInFileAsync(configPath, "skillSources.team.repository", "example/local");
Configuration\ConfigSourceServiceTests.cs (9)
243
await
ConfigurationService
.SetConfigurationInFileAsync(path, "custom", directory.Name);
246
await
ConfigurationService
.SetConfigurationInFileAsync(globalFile.FullName, "docs.custom", global.Name);
1061
await
ConfigurationService
.SetConfigurationInFileAsync(path, "skillSources.local.repository", "example/local");
1062
await
ConfigurationService
.SetConfigurationInFileAsync(path, "skillSources.local.plugins.0", "existing");
1063
await
ConfigurationService
.SetConfigurationInFileAsync(path, "docs.llmsTxtUrl", "https://local.example/docs");
1090
await
ConfigurationService
.SetConfigurationInFileAsync(path, "skillSources.team.repository", "example/local");
1091
await
ConfigurationService
.SetConfigurationInFileAsync(path, "docs.llmsTxtUrl", "https://local.example/docs");
1538
await
ConfigurationService
.SetConfigurationInFileAsync(path, "custom", "intervening edit");
1640
await
ConfigurationService
.SetConfigurationInFileAsync(path, "skillSources.team.repository", "example/local");
Configuration\ConfigurationServiceTests.cs (5)
20
private static (
ConfigurationService
Service, string SettingsFilePath) CreateService(
38
var logger = NullLogger<
ConfigurationService
>.Instance;
39
var
service = new ConfigurationService(configuration, executionContext, globalSettingsFile, logger);
732
var
reader = new ConfigurationService(configuration, workspace.CreateExecutionContext(),
733
new FileInfo(service.GetSettingsFilePath(isGlobal: true)), NullLogger<
ConfigurationService
>.Instance);
Projects\ProjectLocatorTests.cs (14)
594
var
configurationService = new ConfigurationService(new ConfigurationBuilder().Build(), executionContext, globalSettingsFile, NullLogger<
ConfigurationService
>.Instance);
1528
var
configurationService = new ConfigurationService(config, executionContext, globalSettingsFile, NullLogger<
ConfigurationService
>.Instance);
1564
var
configurationService = new ConfigurationService(config, executionContext, globalSettingsFile, NullLogger<
ConfigurationService
>.Instance);
1615
var
configurationService = new ConfigurationService(new ConfigurationBuilder().Build(), executionContext, globalSettingsFile, NullLogger<
ConfigurationService
>.Instance);
1684
var
configurationService = new ConfigurationService(new ConfigurationBuilder().Build(), executionContext, globalSettingsFile, NullLogger<
ConfigurationService
>.Instance);
1739
var
configurationService = new ConfigurationService(new ConfigurationBuilder().Build(), executionContext, globalSettingsFile, NullLogger<
ConfigurationService
>.Instance);
1791
var
configurationService = new ConfigurationService(config, executionContext, globalSettingsFile, NullLogger<
ConfigurationService
>.Instance);
Utils\CliTestHelper.cs (1)
485
return new ConfigurationService(configuration, executionContext, GetGlobalSettingsFile(WorkingDirectory), NullLogger<
ConfigurationService
>.Instance);