4 implementations of IConfigurationService
aspire (1)
Configuration\ConfigurationService.cs (1)
15internal sealed class ConfigurationService(IConfiguration configuration, CliExecutionContext executionContext, FileInfo globalSettingsFile, ILogger<ConfigurationService> logger) : IConfigurationService
Aspire.Cli.Tests (3)
Commands\ConfigCommandTests.cs (1)
1064public class TestConfigurationService : IConfigurationService
Projects\ProjectLocatorTests.cs (1)
2160private sealed class TestConfigurationService(CliExecutionContext executionContext) : IConfigurationService
TestServices\TestConfigurationService.cs (1)
11public sealed class TestConfigurationService : IConfigurationService
35 references to IConfigurationService
aspire (18)
Caching\AppHostInfoDiskCache.cs (2)
110private readonly IConfigurationService _configurationService; 113public AppHostInfoDiskCache(ILogger<AppHostInfoDiskCache> logger, CliExecutionContext executionContext, IConfigurationService configurationService, IEnvironment environment)
Commands\BaseConfigSubCommand.cs (2)
8internal abstract class BaseConfigSubCommand(string name, string description, IConfigurationService configurationService, CommonCommandServices services) : BaseCommand(name, description, services) 10protected IConfigurationService ConfigurationService { get; } = configurationService;
Commands\ConfigCommand.cs (6)
23public ConfigCommand(IConfiguration configuration, IConfigurationService configurationService, CommonCommandServices services) 69public GetCommand(IConfigurationService configurationService, CommonCommandServices services) 124public SetCommand(IConfigurationService configurationService, CommonCommandServices services) 206public ListCommand(IConfigurationService configurationService, CommonCommandServices services) 362public DeleteCommand(IConfigurationService configurationService, CommonCommandServices services) 439public InfoCommand(IConfigurationService configurationService, CommonCommandServices services)
Commands\UpdateCommand.cs (2)
39private readonly IConfigurationService _configurationService; 73IConfigurationService configurationService,
Program.cs (1)
463builder.Services.AddSingleton<IConfigurationService>(sp => new ConfigurationService(
Projects\DotNetAppHostProject.cs (2)
52private readonly IConfigurationService _configurationService; 92IConfigurationService configurationService,
Projects\LanguageService.cs (2)
16private readonly IConfigurationService _configurationService; 22IConfigurationService configurationService,
Projects\ProjectLocator.cs (1)
143IConfigurationService configurationService,
Aspire.Cli.Tests (17)
Caching\AppHostInfoDiskCacheTests.cs (1)
17private static AppHostInfoDiskCache CreateCache(TemporaryWorkspace workspace, IConfigurationService? configurationService = null)
Commands\ConfigCommandTests.cs (7)
149var configurationService = provider.GetRequiredService<IConfigurationService>(); 182var configurationService = provider.GetRequiredService<IConfigurationService>(); 976var settingsPath = provider.GetRequiredService<IConfigurationService>().GetSettingsFilePath(isGlobal: true); 1000var settingsPath = provider.GetRequiredService<IConfigurationService>().GetSettingsFilePath(isGlobal: true); 1058var settingsPath = provider.GetRequiredService<IConfigurationService>().GetSettingsFilePath(isGlobal: false);
Commands\InitCommandTests.cs (1)
1641/// the global <see cref="IConfigurationService"/>. The injected configuration service throws
Commands\NewCommandChannelResolutionTests.cs (1)
32/// the global <see cref="IConfigurationService"/>. The injected configuration service
Projects\ProjectLocatorTests.cs (1)
4253IConfigurationService? configurationService = null,
Utils\CliTestHelper.cs (6)
449public Func<IServiceProvider, IConfigurationService> ConfigurationServiceFactory { get; set; } 451public IConfigurationService CreateDefaultConfigurationServiceFactory(IServiceProvider serviceProvider) 476var configurationService = serviceProvider.GetRequiredService<IConfigurationService>(); 637var configurationService = serviceProvider.GetRequiredService<IConfigurationService>();