4 implementations of GetSettingsFilePath
aspire (1)
Configuration\ConfigurationService.cs (1)
111
public string
GetSettingsFilePath
(bool isGlobal)
Aspire.Cli.Tests (3)
Commands\ConfigCommandTests.cs (1)
1289
public string
GetSettingsFilePath
(bool isGlobal)
Projects\ProjectLocatorTests.cs (1)
2202
public string
GetSettingsFilePath
(bool isGlobal)
TestServices\TestConfigurationService.cs (1)
64
public string
GetSettingsFilePath
(bool isGlobal)
58 references to GetSettingsFilePath
aspire (7)
Commands\AgentInitCommand.cs (1)
440
skillSources = SkillSource.Resolve(configurationDirectory, new FileInfo(_configurationService.
GetSettingsFilePath
(isGlobal: true)));
Commands\ConfigCommand.cs (3)
240
var settingsFilePath = ConfigurationService.
GetSettingsFilePath
(isGlobal: false);
478
var localPath = ConfigurationService.
GetSettingsFilePath
(isGlobal: false);
479
var globalPath = ConfigurationService.
GetSettingsFilePath
(isGlobal: true);
Projects\ProjectLocator.cs (1)
1392
var configuredSettingsFile = new FileInfo(configurationService.
GetSettingsFilePath
(isGlobal: false));
Templating\ConfiguredTemplateSourceService.cs (1)
21
var settingsPath = configurationService.
GetSettingsFilePath
(isGlobal: true);
Templating\TemplateSourceStore.cs (1)
79
var path = configurationService.
GetSettingsFilePath
(isGlobal: true);
Aspire.Cli.Tests (51)
Commands\ConfigCommandTests.cs (5)
183
var settingsPath = configurationService.
GetSettingsFilePath
(isGlobal: false);
216
var settingsPath = configurationService.
GetSettingsFilePath
(isGlobal: true);
1157
var settingsPath = provider.GetRequiredService<IConfigurationService>().
GetSettingsFilePath
(isGlobal: true);
1181
var settingsPath = provider.GetRequiredService<IConfigurationService>().
GetSettingsFilePath
(isGlobal: true);
1239
var settingsPath = provider.GetRequiredService<IConfigurationService>().
GetSettingsFilePath
(isGlobal: false);
Commands\ConfigSourceCommandTests.cs (2)
491
var globalFile = new FileInfo(provider.GetRequiredService<IConfigurationService>().
GetSettingsFilePath
(isGlobal: true));
572
var globalFile = new FileInfo(provider.GetRequiredService<IConfigurationService>().
GetSettingsFilePath
(isGlobal: true));
Commands\NewCommandLocalTemplateTests.ConfiguredSources.cs (8)
33
await File.WriteAllTextAsync(settings.
GetSettingsFilePath
(true), json);
64
var path = provider.GetRequiredService<IConfigurationService>().
GetSettingsFilePath
(true);
127
var path = provider.GetRequiredService<IConfigurationService>().
GetSettingsFilePath
(true);
155
var path = provider.GetRequiredService<IConfigurationService>().
GetSettingsFilePath
(true);
443
await File.WriteAllTextAsync(provider.GetRequiredService<IConfigurationService>().
GetSettingsFilePath
(true),
467
await File.WriteAllTextAsync(settings.
GetSettingsFilePath
(true), globalSettings);
469
var localPath = settings.
GetSettingsFilePath
(false);
638
File.WriteAllTextAsync(provider.GetRequiredService<IConfigurationService>().
GetSettingsFilePath
(true),
Commands\NewCommandLocalTemplateTests.InitConfig.cs (6)
48
var path = provider.GetRequiredService<IConfigurationService>().
GetSettingsFilePath
(true);
80
var original = await File.ReadAllTextAsync(settings.
GetSettingsFilePath
(true));
97
Assert.Equal(original, await File.ReadAllTextAsync(settings.
GetSettingsFilePath
(true)));
108
JsonNode.Parse(await File.ReadAllTextAsync(settings.
GetSettingsFilePath
(true)))));
149
var globalPath = provider.GetRequiredService<IConfigurationService>().
GetSettingsFilePath
(true);
187
Assert.False(File.Exists(settings.
GetSettingsFilePath
(true)));
Commands\NewCommandLocalTemplateTests.SourceList.cs (9)
48
await File.WriteAllTextAsync(settings.
GetSettingsFilePath
(true), SourceListSettings);
49
var localPath = settings.
GetSettingsFilePath
(false);
64
Assert.Equal(SourceListSettings, await File.ReadAllTextAsync(settings.
GetSettingsFilePath
(true)));
96
var path = provider.GetRequiredService<IConfigurationService>().
GetSettingsFilePath
(true);
141
var path = provider.GetRequiredService<IConfigurationService>().
GetSettingsFilePath
(true);
160
Directory.CreateDirectory(provider.GetRequiredService<IConfigurationService>().
GetSettingsFilePath
(true));
231
var globalPath = settings.
GetSettingsFilePath
(true);
234
var localPath = settings.
GetSettingsFilePath
(false);
430
Assert.False(File.Exists(provider.GetRequiredService<IConfigurationService>().
GetSettingsFilePath
(true)));
Commands\NewCommandLocalTemplateTests.SourceListGit.cs (2)
71
Assert.False(File.Exists(previousSettings.
GetSettingsFilePath
(true)));
84
var globalPath = settings.
GetSettingsFilePath
(true);
Commands\NewCommandLocalTemplateTests.SourceManagement.cs (13)
37
var path = provider.GetRequiredService<IConfigurationService>().
GetSettingsFilePath
(true);
115
var path = provider.GetRequiredService<IConfigurationService>().
GetSettingsFilePath
(true);
186
var globalPath = configuration.
GetSettingsFilePath
(true);
188
var localPath = configuration.
GetSettingsFilePath
(false);
233
var path = provider.GetRequiredService<IConfigurationService>().
GetSettingsFilePath
(true);
251
var path = provider.GetRequiredService<IConfigurationService>().
GetSettingsFilePath
(true);
273
var path = provider.GetRequiredService<IConfigurationService>().
GetSettingsFilePath
(true);
295
var path = provider.GetRequiredService<IConfigurationService>().
GetSettingsFilePath
(true);
313
var path = provider.GetRequiredService<IConfigurationService>().
GetSettingsFilePath
(true);
348
var path = configuration.
GetSettingsFilePath
(true);
396
var path = provider.GetRequiredService<IConfigurationService>().
GetSettingsFilePath
(true);
415
var path = provider.GetRequiredService<IConfigurationService>().
GetSettingsFilePath
(true);
436
var path = provider.GetRequiredService<IConfigurationService>().
GetSettingsFilePath
(true);
Commands\TemplateSourceStartupTests.cs (2)
195
Assert.Equal(originalPath, configuration.
GetSettingsFilePath
(isGlobal: true));
263
Assert.Equal(destination, migratedHost.Services.GetRequiredService<IConfigurationService>().
GetSettingsFilePath
(isGlobal: true));
Configuration\ConfigSourceServiceTests.cs (4)
136
var globalFile = new FileInfo(provider.GetRequiredService<IConfigurationService>().
GetSettingsFilePath
(isGlobal: true));
216
var globalFile = new FileInfo(provider.GetRequiredService<IConfigurationService>().
GetSettingsFilePath
(isGlobal: true));
308
var globalFile = new FileInfo(provider.GetRequiredService<IConfigurationService>().
GetSettingsFilePath
(isGlobal: true));
951
var globalFile = new FileInfo(provider.GetRequiredService<IConfigurationService>().
GetSettingsFilePath
(isGlobal: true));