2 instantiations of PipelineOutputSnapshot
Aspire.Hosting (2)
Pipelines\DefaultPipelineOutputSnapshotter.cs (2)
55return new(directory, new Dictionary<string, PipelineOutputFileSnapshot>(PipelineOutputRoot.PathComparer)); 64return new(directory, await _snapshotter.CaptureAsync(directory, _matcher, git, ct).ConfigureAwait(false));
97 references to PipelineOutputSnapshot
Aspire.Hosting (6)
Pipelines\DefaultPipelineOutputComparer.cs (3)
11internal sealed class DefaultPipelineOutputComparer : IPipelineOutputComparer<PipelineOutputSnapshot> 15PipelineOutputSnapshot before, PipelineOutputSnapshot after, CancellationToken cancellationToken)
Pipelines\DefaultPipelineOutputSnapshotter.cs (2)
15internal sealed class DefaultPipelineOutputSnapshotter : IPipelineOutputSnapshotter<PipelineOutputSnapshot> 49public async Task<PipelineOutputSnapshot> CaptureAsync(string outputDirectory, CancellationToken ct)
Pipelines\PipelineOutputDiffingExtensions.cs (1)
95return builder.WithOutputDiffing<PipelineOutputSnapshot, DefaultPipelineOutputSnapshotter, DefaultPipelineOutputComparer>(createStep);
Aspire.Hosting.Tests (91)
Pipelines\PipelineOutputComparisonTests.cs (13)
30var before = await snapshotter.CaptureAsync(root, TestContext.Current.CancellationToken); 37var after = await snapshotter.CaptureAsync(root, TestContext.Current.CancellationToken); 78var capture = await snapshotter.CaptureAsync(root, TestContext.Current.CancellationToken); 93var firstBefore = await first.CaptureAsync(root, TestContext.Current.CancellationToken); 96var secondBefore = await second.CaptureAsync(root, TestContext.Current.CancellationToken); 97var secondAfter = await second.CaptureAsync(root, TestContext.Current.CancellationToken); 98var firstAfter = await first.CaptureAsync(root, TestContext.Current.CancellationToken); 132var capture = await snapshotter.CaptureAsync(root, TestContext.Current.CancellationToken); 144var before = await snapshotter.CaptureAsync(root, TestContext.Current.CancellationToken); 146var after = await snapshotter.CaptureAsync(root, TestContext.Current.CancellationToken); 147IPipelineOutputComparer<PipelineOutputSnapshot> comparer = new DefaultPipelineOutputComparer(); 167var before = await snapshotter.CaptureAsync(parent, TestContext.Current.CancellationToken); 169var after = await snapshotter.CaptureAsync(root, TestContext.Current.CancellationToken);
Pipelines\PipelineOutputDiffingTests.cs (6)
38var snapshotter = app.Services.GetService<IPipelineOutputSnapshotter<PipelineOutputSnapshot>>(); 39var comparer = app.Services.GetService<IPipelineOutputComparer<PipelineOutputSnapshot>>(); 307builder.Services.AddTransient<IPipelineOutputSnapshotter<PipelineOutputSnapshot>>(_ => throw new InvalidOperationException("typed snapshotter resolved")); 308builder.Services.AddTransient<IPipelineOutputComparer<PipelineOutputSnapshot>>(_ => throw new InvalidOperationException("comparer resolved")); 366builder.Services.AddTransient<IPipelineOutputSnapshotter<PipelineOutputSnapshot>>(_ => throw new InvalidOperationException("typed snapshotter resolved")); 367builder.Services.AddTransient<IPipelineOutputComparer<PipelineOutputSnapshot>>(_ => throw new InvalidOperationException("comparer resolved"));
Pipelines\PipelineOutputGitFingerprintTests.cs (31)
42var beforeSnapshot = await nativeSnapshotter.CaptureAsync(root, TestContext.Current.CancellationToken); 48var afterSnapshot = await nativeSnapshotter.CaptureAsync(root, TestContext.Current.CancellationToken); 92var before = await nativeSnapshotter.CaptureAsync(root, TestContext.Current.CancellationToken); 101var after = await nativeSnapshotter.CaptureAsync(root, TestContext.Current.CancellationToken); 161var beforeSnapshot = await nativeSnapshotter.CaptureAsync(root, TestContext.Current.CancellationToken); 164var afterSnapshot = await nativeSnapshotter.CaptureAsync(root, TestContext.Current.CancellationToken); 211var beforeSnapshot = await nativeSnapshotter.CaptureAsync(root, TestContext.Current.CancellationToken); 219var afterSnapshot = await nativeSnapshotter.CaptureAsync(root, TestContext.Current.CancellationToken); 248var beforeSnapshot = await nativeSnapshotter.CaptureAsync(root, TestContext.Current.CancellationToken); 257var afterSnapshot = await nativeSnapshotter.CaptureAsync(root, TestContext.Current.CancellationToken); 309var beforeSnapshot = await nativeSnapshotter.CaptureAsync(root, TestContext.Current.CancellationToken); 320var afterSnapshot = await nativeSnapshotter.CaptureAsync(root, TestContext.Current.CancellationToken); 326var staged = await nativeSnapshotter.CaptureAsync(root, TestContext.Current.CancellationToken); 331var sameTarget = await nativeSnapshotter.CaptureAsync(root, TestContext.Current.CancellationToken); 348var retargeted = await nativeSnapshotter.CaptureAsync(root, TestContext.Current.CancellationToken); 367var before = await nativeSnapshotter.CaptureAsync(root, TestContext.Current.CancellationToken); 374var staged = await nativeSnapshotter.CaptureAsync(root, TestContext.Current.CancellationToken); 379var changed = await nativeSnapshotter.CaptureAsync(root, TestContext.Current.CancellationToken); 411var beforeSnapshot = await nativeSnapshotter.CaptureAsync(root, TestContext.Current.CancellationToken); 412var afterSnapshot = await nativeSnapshotter.CaptureAsync(root, TestContext.Current.CancellationToken); 450var beforeSnapshot = await nativeSnapshotter.CaptureAsync(root, TestContext.Current.CancellationToken); 455var afterSnapshot = await nativeSnapshotter.CaptureAsync(root, TestContext.Current.CancellationToken); 493var beforeSnapshot = await nativeSnapshotter.CaptureAsync(root, TestContext.Current.CancellationToken); 510var afterSnapshot = await nativeSnapshotter.CaptureAsync(root, TestContext.Current.CancellationToken); 548var beforeSnapshot = await nativeSnapshotter.CaptureAsync(root, TestContext.Current.CancellationToken); 551var storageBefore = await nativeSnapshotter.CaptureAsync(root, TestContext.Current.CancellationToken); 553var afterSnapshot = await nativeSnapshotter.CaptureAsync(root, TestContext.Current.CancellationToken); 559var storageAfter = await nativeSnapshotter.CaptureAsync(root, TestContext.Current.CancellationToken); 581var beforeSnapshot = await nativeSnapshotter.CaptureAsync(requested, TestContext.Current.CancellationToken); 584var afterSnapshot = await nativeSnapshotter.CaptureAsync(requested, TestContext.Current.CancellationToken); 599var beforeSnapshot = await nativeSnapshotter.CaptureAsync(root, TestContext.Current.CancellationToken);
Pipelines\PipelineOutputSelectionTests.cs (24)
75var beforeSnapshot = await nativeSnapshotter.CaptureAsync(root, TestContext.Current.CancellationToken); 78var afterSnapshot = await nativeSnapshotter.CaptureAsync(root, TestContext.Current.CancellationToken); 229var before = await nativeSnapshotter.CaptureAsync(root, TestContext.Current.CancellationToken); 231var beforeSnapshot = await nativeSnapshotter.CaptureAsync(root, TestContext.Current.CancellationToken); 236var retargeted = await nativeSnapshotter.CaptureAsync(root, TestContext.Current.CancellationToken); 240var afterSnapshot = await nativeSnapshotter.CaptureAsync(root, TestContext.Current.CancellationToken); 283var beforeSnapshot = await nativeSnapshotter.CaptureAsync(root, TestContext.Current.CancellationToken); 288var afterSnapshot = await nativeSnapshotter.CaptureAsync(root, TestContext.Current.CancellationToken); 303var beforeSnapshot = await nativeSnapshotter.CaptureAsync(root, TestContext.Current.CancellationToken); 309var afterSnapshot = await nativeSnapshotter.CaptureAsync(root, TestContext.Current.CancellationToken); 353var beforeSnapshot = await nativeSnapshotter.CaptureAsync(root, TestContext.Current.CancellationToken); 355var afterSnapshot = await nativeSnapshotter.CaptureAsync(root, TestContext.Current.CancellationToken); 371var beforeSnapshot = await nativeSnapshotter.CaptureAsync(root, TestContext.Current.CancellationToken); 374var afterSnapshot = await nativeSnapshotter.CaptureAsync(root, TestContext.Current.CancellationToken); 397var beforeSnapshot = await nativeSnapshotter.CaptureAsync(root, TestContext.Current.CancellationToken); 407var afterSnapshot = await nativeSnapshotter.CaptureAsync(root, TestContext.Current.CancellationToken); 681var beforeSnapshot = await nativeSnapshotter.CaptureAsync(root, TestContext.Current.CancellationToken); 686var afterSnapshot = await nativeSnapshotter.CaptureAsync(root, TestContext.Current.CancellationToken); 757var beforeSnapshot = await nativeSnapshotter.CaptureAsync(root, TestContext.Current.CancellationToken); 761var afterSnapshot = await nativeSnapshotter.CaptureAsync(root, TestContext.Current.CancellationToken); 808var beforeSnapshot = await nativeSnapshotter.CaptureAsync(root, TestContext.Current.CancellationToken); 812var afterSnapshot = await nativeSnapshotter.CaptureAsync(root, TestContext.Current.CancellationToken); 853var beforeSnapshot = await nativeSnapshotter.CaptureAsync(root, TestContext.Current.CancellationToken); 856var afterSnapshot = await nativeSnapshotter.CaptureAsync(root, TestContext.Current.CancellationToken);
Pipelines\PipelineOutputStrategyTests.cs (17)
27var beforeSnapshot = await nativeSnapshotter.CaptureAsync(workspace.Path, TestContext.Current.CancellationToken); 29var afterSnapshot = await nativeSnapshotter.CaptureAsync(workspace.Path, TestContext.Current.CancellationToken); 52var snapshot = await nativeSnapshotter.CaptureAsync(workspace.Path, TestContext.Current.CancellationToken); 96var beforeSnapshot = await nativeSnapshotter.CaptureAsync(workspace.Path, TestContext.Current.CancellationToken); 99var afterSnapshot = await nativeSnapshotter.CaptureAsync(workspace.Path, TestContext.Current.CancellationToken); 116var beforeSnapshot = await nativeSnapshotter.CaptureAsync(missing, TestContext.Current.CancellationToken); 117var afterSnapshot = await nativeSnapshotter.CaptureAsync(missing, TestContext.Current.CancellationToken); 135var beforeSnapshot = await nativeSnapshotter.CaptureAsync(directory, TestContext.Current.CancellationToken); 140var afterSnapshot = await nativeSnapshotter.CaptureAsync(directory, TestContext.Current.CancellationToken); 237var snapshot = await nativeSnapshotter.CaptureAsync(root, TestContext.Current.CancellationToken); 600var beforeSnapshot = await custom.CaptureAsync(root, TestContext.Current.CancellationToken); 602var unchanged = await custom.CaptureAsync(root, TestContext.Current.CancellationToken); 605var afterSnapshot = await custom.CaptureAsync(root, TestContext.Current.CancellationToken); 662var nativeSnapshotter = throughDi ? app.Services.GetRequiredService<IPipelineOutputSnapshotter<PipelineOutputSnapshot>>() : new DefaultPipelineOutputSnapshotter(snapshotter, new DefaultProcessRunner(), Options.Create(new PipelineOutputDiffOptions { Mode = mode })); 680var beforeSnapshot = await nativeSnapshotter.CaptureAsync(root, TestContext.Current.CancellationToken); 683var afterSnapshot = await nativeSnapshotter.CaptureAsync(root, TestContext.Current.CancellationToken); 686var customCapture = await Assert.IsType<DefaultPipelineOutputSnapshotter>(nativeSnapshotter).CaptureAsync(root, TestContext.Current.CancellationToken);