1 instantiation of RecordingSnapshot
Aspire.Hosting.Tests (1)
Pipelines\PipelineOutputDiffingTests.cs (1)
1164
return Task.FromResult(new
RecordingSnapshot
(this, outputDirectory, Events.Count));
25 references to RecordingSnapshot
Aspire.Hosting.Tests (25)
Pipelines\PipelineOutputDiffingTests.cs (25)
225
builder.Services.AddSingleton<IPipelineOutputSnapshotter<
RecordingSnapshot
>>(snapshotter);
231
builder.WithOutputDiffing<
RecordingSnapshot
, RecordingSnapshotter, RecordingComparer>();
331
builder.Services.AddSingleton<IPipelineOutputSnapshotter<
RecordingSnapshot
>>(snapshotter);
332
builder.WithOutputDiffing<
RecordingSnapshot
, RecordingSnapshotter, RecordingComparer>();
652
builder.Services.AddSingleton<IPipelineOutputSnapshotter<
RecordingSnapshot
>>(snapshotter);
655
builder.WithOutputDiffing<
RecordingSnapshot
, RecordingSnapshotter, RecordingComparer>();
737
builder.Services.AddTransient<IPipelineOutputSnapshotter<
RecordingSnapshot
>>(_ =>
745
builder.WithOutputDiffing<
RecordingSnapshot
, RecordingSnapshotter, RecordingComparer>();
779
builder.Services.AddTransient<IPipelineOutputSnapshotter<
RecordingSnapshot
>>(_ =>
785
builder.Services.AddTransient<IPipelineOutputComparer<
RecordingSnapshot
>>(_ =>
792
builder.WithOutputDiffing<
RecordingSnapshot
, RecordingSnapshotter, RecordingComparer>(() => new PipelineStep
798
builder.WithOutputDiffing<
RecordingSnapshot
, RecordingSnapshotter, RecordingComparer>(() => new PipelineStep
839
builder.Services.AddSingleton<IPipelineOutputSnapshotter<
RecordingSnapshot
>>(snapshotter);
840
builder.WithOutputDiffing<
RecordingSnapshot
, RecordingSnapshotter, RecordingComparer>();
870
builder.Services.AddSingleton<IPipelineOutputSnapshotter<
RecordingSnapshot
>>(snapshotter);
876
builder.WithOutputDiffing<
RecordingSnapshot
, RecordingSnapshotter, RecordingComparer>("custom-target", "custom-check");
896
builder.Services.AddSingleton<IPipelineOutputSnapshotter<
RecordingSnapshot
>>(snapshotter);
897
builder.WithOutputDiffing<
RecordingSnapshot
, RecordingSnapshotter, RecordingComparer>();
1012
builder.Services.AddSingleton<IPipelineOutputSnapshotter<
RecordingSnapshot
>>(snapshotter);
1016
builder.WithOutputDiffing<
RecordingSnapshot
, RecordingSnapshotter, RecordingComparer>(diffStepName: "file-check");
1134
private sealed class RecordingSnapshotter(string artifact, bool reportUnchanged = false) : IPipelineOutputSnapshotter<
RecordingSnapshot
>, IDisposable
1143
public Task<
RecordingSnapshot
> CaptureAsync(string outputDirectory, CancellationToken ct)
1170
private sealed class RecordingComparer : IPipelineOutputComparer<
RecordingSnapshot
>, IDisposable
1174
public Task<IReadOnlyList<PipelineOutputChange>> CompareAsync(
RecordingSnapshot
before,
RecordingSnapshot
after, CancellationToken ct)