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