1 instantiation of ConfigSourceSnapshot
aspire (1)
Configuration\ConfigSourceService.cs (1)
454
var snapshot = new
ConfigSourceSnapshot
(new(identity, commit, version, now), configuration);
13 references to ConfigSourceSnapshot
aspire (7)
Configuration\ConfigSourceService.cs (7)
36
private readonly Dictionary<ConfigSourceIdentity,
ConfigSourceSnapshot
> _snapshots = [];
218
var
snapshot = await AcquireAsync(source, force: false, cancellationToken);
222
private async Task ApplySnapshotAsync(ConfigSource source,
ConfigSourceSnapshot
snapshot, string path, CancellationToken cancellationToken)
322
var
snapshot = await AcquireAsync(source, force: refreshedSources.Add(identity), cancellationToken);
421
internal async Task<
ConfigSourceSnapshot
> AcquireAsync(ConfigSource source, bool force, CancellationToken cancellationToken)
427
if (!force && _snapshots.TryGetValue(key, out
var
existing))
454
var
snapshot = new ConfigSourceSnapshot(new(identity, commit, version, now), configuration);
Aspire.Cli.Tests (6)
Configuration\ConfigSourceServiceGitTests.cs (2)
695
var
acquired = await service.AcquireAsync(source, force: true, token);
709
var
refreshed = await service.AcquireAsync(source, force: true, token);
Configuration\ConfigSourceServiceTests.cs (3)
1166
var
first = await service.AcquireAsync(s_source, force: false, CancellationToken.None);
1167
var
second = await service.AcquireAsync(s_appliedSource, force: false, CancellationToken.None);
1470
var
retained = await first.AcquireAsync(s_source, force: false, CancellationToken.None);
TestServices\TestConfigSourceServices.cs (1)
47
var
snapshot = await service.AcquireAsync(source, force: true, cancellationToken);