6 instantiations of PipelineOutputFileSnapshot
Aspire.Hosting (4)
Pipelines\GitPipelineOutputSnapshotter.cs (3)
38
files.Add(path,
new
(IsLink: true, hash, mode));
42
files.Add(path,
new
(IsLink: false, indexed.Hash, mode));
59
files.Add(residual[i].File.FullName,
new
(IsLink: false, hashes[i], residual[i].Mode));
Pipelines\PipelineOutputSnapshotter.cs (1)
121
return new
PipelineOutputFileSnapshot
(isLink, hash.ToArray());
Aspire.Hosting.Tests (2)
Pipelines\PipelineOutputSnapshotterTests.cs (2)
534
var before = new Dictionary<string, PipelineOutputFileSnapshot> { [path] =
new
(false, new byte[] { 42 }, beforeMode) };
535
var after = new Dictionary<string, PipelineOutputFileSnapshot> { [path] =
new
(false, new byte[] { 42 }, afterMode) };
17 references to PipelineOutputFileSnapshot
Aspire.Hosting (15)
Pipelines\DefaultPipelineOutputComparer.cs (4)
27
IReadOnlyDictionary<string,
PipelineOutputFileSnapshot
> before,
28
IReadOnlyDictionary<string,
PipelineOutputFileSnapshot
> after,
37
var hadBefore = before.TryGetValue(path, out
var
beforeSnapshot);
38
var hasAfter = after.TryGetValue(path, out
var
afterSnapshot);
Pipelines\DefaultPipelineOutputSnapshotter.cs (1)
55
return new(directory, new Dictionary<string,
PipelineOutputFileSnapshot
>(PipelineOutputRoot.PathComparer));
Pipelines\GitPipelineOutputSnapshotter.cs (2)
14
internal static async Task<IReadOnlyDictionary<string,
PipelineOutputFileSnapshot
>> CaptureAsync(
18
var files = new Dictionary<string,
PipelineOutputFileSnapshot
>(entries.Count, PipelineOutputRoot.PathComparer);
Pipelines\PipelineOutputSnapshot.cs (1)
10
string OutputDirectory, IReadOnlyDictionary<string,
PipelineOutputFileSnapshot
> Files);
Pipelines\PipelineOutputSnapshotter.cs (7)
28
internal async Task<IReadOnlyDictionary<string,
PipelineOutputFileSnapshot
>> CaptureAsync(string outputDirectory, CancellationToken cancellationToken = default)
35
return new Dictionary<string,
PipelineOutputFileSnapshot
>(PipelineOutputRoot.PathComparer);
43
internal async Task<IReadOnlyDictionary<string,
PipelineOutputFileSnapshot
>> CaptureAsync(string directory, Matcher matcher, GitPipelineOutputReader? git, CancellationToken cancellationToken)
93
internal async Task<IReadOnlyDictionary<string,
PipelineOutputFileSnapshot
>> CapturePathsAsync(IEnumerable<FileInfo> files, CancellationToken cancellationToken)
96
var snapshots = new Dictionary<string,
PipelineOutputFileSnapshot
>(PipelineOutputRoot.PathComparer);
98
var results = new
PipelineOutputFileSnapshot
[uniqueFiles.Length];
112
private async Task<
PipelineOutputFileSnapshot
> CaptureFileAsync(FileInfo file, CancellationToken cancellationToken)
Aspire.Hosting.Tests (2)
Pipelines\PipelineOutputSnapshotterTests.cs (2)
534
var before = new Dictionary<string,
PipelineOutputFileSnapshot
> { [path] = new(false, new byte[] { 42 }, beforeMode) };
535
var after = new Dictionary<string,
PipelineOutputFileSnapshot
> { [path] = new(false, new byte[] { 42 }, afterMode) };