1 instantiation of ConfigSourceSnapshot
aspire (1)
Configuration\ConfigSourceService.cs (1)
625
var snapshot = new
ConfigSourceSnapshot
(new(identity, commit, version, now), configuration);
17 references to ConfigSourceSnapshot
aspire (9)
Configuration\ConfigSourceService.cs (9)
38
private readonly Dictionary<ConfigSourceIdentity,
ConfigSourceSnapshot
> _snapshots = [];
309
var
snapshot = await AcquireAsync(source, force: false, cancellationToken);
346
var
snapshot = await AcquireAsync(source, force: false, cancellationToken);
376
private async Task<bool> ApplySnapshotAsync(ConfigSource source,
ConfigSourceSnapshot
snapshot, string path, CancellationToken cancellationToken)
481
var
snapshot = await AcquireAsync(source, force: true, cancellationToken);
583
internal Task<
ConfigSourceSnapshot
> AcquireAsync(ConfigSource source, bool force, CancellationToken cancellationToken) =>
586
private async Task<
ConfigSourceSnapshot
> AcquireAsync(
593
if (!force && _snapshots.TryGetValue(key, out
var
existing))
625
var
snapshot = new ConfigSourceSnapshot(new(identity, commit, version, now), configuration);
Aspire.Cli.Tests (8)
Configuration\ConfigSourceServiceGitTests.cs (2)
691
var
acquired = await service.AcquireAsync(source, force: true, token);
705
var
refreshed = await service.AcquireAsync(source, force: true, token);
Configuration\ConfigSourceServiceTests.cs (5)
1756
var
first = await service.AcquireAsync(source, force: false, CancellationToken.None);
1757
var
cached = await service.AcquireAsync(source, force: false, CancellationToken.None);
1777
var
first = await service.AcquireAsync(initialSource, force: false, CancellationToken.None);
1778
var
second = await service.AcquireAsync(hasAppliedVersion ? s_source : s_appliedSource, force: false, CancellationToken.None);
2093
var
retained = await first.AcquireAsync(s_source, force: false, CancellationToken.None);
TestServices\TestConfigSourceServices.cs (1)
44
var
snapshot = await service.AcquireAsync(source, force: true, cancellationToken);