4 implementations of IConfigurationService
aspire (1)
Configuration\ConfigurationService.cs (1)
16
internal sealed class ConfigurationService(IConfiguration configuration, CliExecutionContext executionContext, FileInfo globalSettingsFile, ILogger<ConfigurationService> logger) :
IConfigurationService
Aspire.Cli.Tests (3)
Commands\ConfigCommandTests.cs (1)
1175
public class TestConfigurationService :
IConfigurationService
Projects\ProjectLocatorTests.cs (1)
2162
private sealed class TestConfigurationService(CliExecutionContext executionContext) :
IConfigurationService
TestServices\TestConfigurationService.cs (1)
11
public sealed class TestConfigurationService :
IConfigurationService
98 references to IConfigurationService
aspire (26)
Caching\AppHostInfoDiskCache.cs (2)
110
private readonly
IConfigurationService
_configurationService;
113
public AppHostInfoDiskCache(ILogger<AppHostInfoDiskCache> logger, CliExecutionContext executionContext,
IConfigurationService
configurationService, IEnvironment environment)
Commands\AgentInitCommand.cs (2)
39
private readonly
IConfigurationService
_configurationService;
51
IConfigurationService
configurationService,
Commands\BaseConfigSubCommand.cs (2)
8
internal abstract class BaseConfigSubCommand(string name, string description,
IConfigurationService
configurationService, CommonCommandServices services) : BaseCommand(name, description, services)
10
protected
IConfigurationService
ConfigurationService { get; } = configurationService;
Commands\ConfigCommand.cs (6)
24
public ConfigCommand(IConfiguration configuration,
IConfigurationService
configurationService, CommonCommandServices services)
70
public GetCommand(
IConfigurationService
configurationService, CommonCommandServices services)
125
public SetCommand(
IConfigurationService
configurationService, CommonCommandServices services)
219
public ListCommand(
IConfigurationService
configurationService, CommonCommandServices services)
375
public DeleteCommand(
IConfigurationService
configurationService, CommonCommandServices services)
452
public InfoCommand(
IConfigurationService
configurationService, CommonCommandServices services)
Commands\UpdateCommand.cs (2)
42
private readonly
IConfigurationService
_configurationService;
84
IConfigurationService
configurationService,
NuGet\BundleNuGetService.cs (2)
89
private readonly
IConfigurationService
_configurationService;
97
IConfigurationService
configurationService)
Packaging\IntegrationPackageSearchService.cs (1)
25
IConfigurationService
configurationService,
Program.cs (1)
481
builder.Services.AddSingleton<
IConfigurationService
>(sp => new ConfigurationService(
Projects\AppHostConfigurationProjector.cs (1)
12
internal sealed class AppHostConfigurationProjector(
IConfigurationService
configurationService, IEnvironment environment)
Projects\DotNetAppHostProject.cs (2)
52
private readonly
IConfigurationService
_configurationService;
94
IConfigurationService
configurationService,
Projects\LanguageService.cs (2)
16
private readonly
IConfigurationService
_configurationService;
22
IConfigurationService
configurationService,
Projects\ProjectLocator.cs (1)
143
IConfigurationService
configurationService,
Templating\ConfiguredTemplateSourceService.cs (1)
16
IConfigurationService
configurationService,
Templating\TemplateSourceStore.cs (1)
14
IConfigurationService
configurationService,
Aspire.Cli.Tests (72)
Caching\AppHostInfoDiskCacheTests.cs (1)
17
private static AppHostInfoDiskCache CreateCache(TemporaryWorkspace workspace,
IConfigurationService
? configurationService = null)
Commands\ConfigCommandTests.cs (9)
182
var
configurationService = provider.GetRequiredService<
IConfigurationService
>();
215
var
configurationService = provider.GetRequiredService<
IConfigurationService
>();
839
var
configurationService = reloadedProvider.GetRequiredService<
IConfigurationService
>();
1087
var settingsPath = provider.GetRequiredService<
IConfigurationService
>().GetSettingsFilePath(isGlobal: true);
1111
var settingsPath = provider.GetRequiredService<
IConfigurationService
>().GetSettingsFilePath(isGlobal: true);
1169
var settingsPath = provider.GetRequiredService<
IConfigurationService
>().GetSettingsFilePath(isGlobal: false);
Commands\ConfigSourceCommandTests.cs (3)
651
var globalFile = new FileInfo(provider.GetRequiredService<
IConfigurationService
>().GetSettingsFilePath(isGlobal: true));
739
var globalFile = new FileInfo(provider.GetRequiredService<
IConfigurationService
>().GetSettingsFilePath(isGlobal: true));
1008
var inherited = await provider.GetRequiredService<
IConfigurationService
>().GetConfigurationFromDirectoryAsync(
Commands\InitCommandTests.cs (1)
2005
/// the global <see cref="
IConfigurationService
"/>. The injected configuration service throws
Commands\NewCommandChannelResolutionTests.cs (1)
32
/// the global <see cref="
IConfigurationService
"/>. The injected configuration service
Commands\NewCommandLocalTemplateTests.ConfiguredSources.cs (9)
66
var
settings = provider.GetRequiredService<
IConfigurationService
>();
98
var path = provider.GetRequiredService<
IConfigurationService
>().GetSettingsFilePath(true);
162
var path = provider.GetRequiredService<
IConfigurationService
>().GetSettingsFilePath(true);
190
var path = provider.GetRequiredService<
IConfigurationService
>().GetSettingsFilePath(true);
503
await File.WriteAllTextAsync(provider.GetRequiredService<
IConfigurationService
>().GetSettingsFilePath(true),
524
var
settings = provider.GetRequiredService<
IConfigurationService
>();
698
File.WriteAllTextAsync(provider.GetRequiredService<
IConfigurationService
>().GetSettingsFilePath(true),
Commands\NewCommandLocalTemplateTests.InitConfig.cs (8)
62
var globalPath = provider.GetRequiredService<
IConfigurationService
>().GetSettingsFilePath(true);
106
var path = provider.GetRequiredService<
IConfigurationService
>().GetSettingsFilePath(true);
135
var
settings = provider.GetRequiredService<
IConfigurationService
>();
209
var globalPath = provider.GetRequiredService<
IConfigurationService
>().GetSettingsFilePath(true);
260
var globalPath = provider.GetRequiredService<
IConfigurationService
>().GetSettingsFilePath(true);
297
var
settings = provider.GetRequiredService<
IConfigurationService
>();
Commands\NewCommandLocalTemplateTests.SourceList.cs (8)
47
var
settings = provider.GetRequiredService<
IConfigurationService
>();
96
var path = provider.GetRequiredService<
IConfigurationService
>().GetSettingsFilePath(true);
141
var path = provider.GetRequiredService<
IConfigurationService
>().GetSettingsFilePath(true);
160
Directory.CreateDirectory(provider.GetRequiredService<
IConfigurationService
>().GetSettingsFilePath(true));
230
var
settings = provider.GetRequiredService<
IConfigurationService
>();
433
Assert.False(File.Exists(provider.GetRequiredService<
IConfigurationService
>().GetSettingsFilePath(true)));
Commands\NewCommandLocalTemplateTests.SourceListGit.cs (5)
71
var
previousSettings = previousProvider.GetRequiredService<
IConfigurationService
>();
84
var
settings = provider.GetRequiredService<
IConfigurationService
>();
260
var globalPath = provider.GetRequiredService<
IConfigurationService
>().GetSettingsFilePath(true);
Commands\NewCommandLocalTemplateTests.SourceManagement.cs (15)
60
var path = provider.GetRequiredService<
IConfigurationService
>().GetSettingsFilePath(true);
144
var path = provider.GetRequiredService<
IConfigurationService
>().GetSettingsFilePath(true);
216
var
configuration = provider.GetRequiredService<
IConfigurationService
>();
264
var path = provider.GetRequiredService<
IConfigurationService
>().GetSettingsFilePath(true);
282
var path = provider.GetRequiredService<
IConfigurationService
>().GetSettingsFilePath(true);
304
var path = provider.GetRequiredService<
IConfigurationService
>().GetSettingsFilePath(true);
326
var path = provider.GetRequiredService<
IConfigurationService
>().GetSettingsFilePath(true);
344
var path = provider.GetRequiredService<
IConfigurationService
>().GetSettingsFilePath(true);
354
Assert.True(await provider.GetRequiredService<
IConfigurationService
>().DeleteConfigurationAsync("TEMPLATESOURCES.COMPANY.ref", isGlobal: true));
378
var
configuration = provider.GetRequiredService<
IConfigurationService
>();
440
var path = provider.GetRequiredService<
IConfigurationService
>().GetSettingsFilePath(true);
459
var path = provider.GetRequiredService<
IConfigurationService
>().GetSettingsFilePath(true);
480
var path = provider.GetRequiredService<
IConfigurationService
>().GetSettingsFilePath(true);
Commands\TemplateSourceStartupTests.cs (3)
192
var
configuration = host.Services.GetRequiredService<
IConfigurationService
>();
263
Assert.Equal(destination, migratedHost.Services.GetRequiredService<
IConfigurationService
>().GetSettingsFilePath(isGlobal: true));
Configuration\ConfigSourceServiceTests.cs (4)
216
var globalFile = new FileInfo(provider.GetRequiredService<
IConfigurationService
>().GetSettingsFilePath(isGlobal: true));
296
var globalFile = new FileInfo(provider.GetRequiredService<
IConfigurationService
>().GetSettingsFilePath(isGlobal: true));
390
var globalFile = new FileInfo(provider.GetRequiredService<
IConfigurationService
>().GetSettingsFilePath(isGlobal: true));
1222
var globalFile = new FileInfo(provider.GetRequiredService<
IConfigurationService
>().GetSettingsFilePath(isGlobal: true));
Projects\ProjectLocatorTests.cs (1)
4288
IConfigurationService
? configurationService = null,
Utils\CliTestHelper.cs (4)
478
public Func<IServiceProvider,
IConfigurationService
> ConfigurationServiceFactory { get; set; }
480
public
IConfigurationService
CreateDefaultConfigurationServiceFactory(IServiceProvider serviceProvider)
505
var
configurationService = serviceProvider.GetRequiredService<
IConfigurationService
>();