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