20 references to WriteSettingsFileAtomicallyAsync
aspire (9)
Agents\AgentConfiguration.cs (1)
161
await ConfigurationHelper.
WriteSettingsFileAtomicallyAsync
(
Configuration\ConfigSourceService.cs (3)
262
await ConfigurationHelper.
WriteSettingsFileAtomicallyAsync
(path, configuration, cancellationToken);
388
await ConfigurationHelper.
WriteSettingsFileAtomicallyAsync
(path, configuration, cancellationToken);
789
return ConfigurationHelper.
WriteSettingsFileAtomicallyAsync
(Path.Combine(directory, "check.json"), json, cancellationToken);
Configuration\ConfigurationService.cs (2)
64
await ConfigurationHelper.
WriteSettingsFileAtomicallyAsync
(settingsFilePath, settings, cancellationToken, preserveOwnershipAndAcl: true);
105
await ConfigurationHelper.
WriteSettingsFileAtomicallyAsync
(settingsFilePath, settings, cancellationToken, preserveOwnershipAndAcl: true);
Program.cs (1)
206
await ConfigurationHelper.
WriteSettingsFileAtomicallyAsync
(newPath, settings, cancellationToken);
Templating\TemplateSourceStore.cs (2)
50
await ConfigurationHelper.
WriteSettingsFileAtomicallyAsync
(path, settings, cancellationToken, preserveOwnershipAndAcl: true);
73
await ConfigurationHelper.
WriteSettingsFileAtomicallyAsync
(path, settings, cancellationToken, preserveOwnershipAndAcl: true);
Aspire.Cli.Tests (11)
Commands\TemplateSourceStartupTests.cs (1)
258
await ConfigurationHelper.
WriteSettingsFileAtomicallyAsync
(target, JsonNode.Parse("""
Configuration\ConfigurationHelperTests.cs (9)
33
await Assert.ThrowsAsync<IOException>(() => ConfigurationHelper.
WriteSettingsFileAtomicallyAsync
(
57
var error = await Assert.ThrowsAsync<IOException>(() => ConfigurationHelper.
WriteSettingsFileAtomicallyAsync
(
80
await Assert.ThrowsAsync<IOException>(() => ConfigurationHelper.
WriteSettingsFileAtomicallyAsync
(
114
await ConfigurationHelper.
WriteSettingsFileAtomicallyAsync
(path, new JsonObject { ["custom"] = "updated" }, CancellationToken.None);
135
await ConfigurationHelper.
WriteSettingsFileAtomicallyAsync
(path, new JsonObject { ["custom"] = "updated" }, CancellationToken.None);
153
ConfigurationHelper.
WriteSettingsFileAtomicallyAsync
(path, new JsonObject { ["custom"] = "updated" }, CancellationToken.None));
180
await ConfigurationHelper.
WriteSettingsFileAtomicallyAsync
(path, new JsonObject { ["custom"] = "updated" }, CancellationToken.None);
206
await ConfigurationHelper.
WriteSettingsFileAtomicallyAsync
(file.FullName, new JsonObject { ["custom"] = "updated" }, CancellationToken.None);
539
await ConfigurationHelper.
WriteSettingsFileAtomicallyAsync
(settingsPath, settings, CancellationToken.None);
Configuration\ConfigurationServiceTests.cs (1)
178
await ConfigurationHelper.
WriteSettingsFileAtomicallyAsync
(path, JsonNode.Parse("""