7 implementations of IPipelineOutputSnapshotter
Aspire.Hosting (1)
Pipelines\DefaultPipelineOutputSnapshotter.cs (1)
15
internal sealed class DefaultPipelineOutputSnapshotter :
IPipelineOutputSnapshotter
<PipelineOutputSnapshot>
Aspire.Hosting.Tests (6)
Pipelines\PipelineOutputDiffingLifetimeTests.cs (1)
193
private sealed class LifetimeSnapshotter(string capture, string failure) :
IPipelineOutputSnapshotter
<LifetimeSnapshot>, IDisposable
Pipelines\PipelineOutputDiffingTests.cs (3)
1070
private sealed class GitSnapshotter(string directory) :
IPipelineOutputSnapshotter
<GitSnapshot>
1134
private sealed class RecordingSnapshotter(string artifact, bool reportUnchanged = false) :
IPipelineOutputSnapshotter
<RecordingSnapshot>, IDisposable
1195
private sealed class DirectorySnapshotter :
IPipelineOutputSnapshotter
<string>
Pipelines\PipelineOutputResolutionTests.cs (2)
208
private sealed class ValueSnapshotter :
IPipelineOutputSnapshotter
<int>
236
private sealed class ContentSnapshotter :
IPipelineOutputSnapshotter
<ContentSnapshot>, IDisposable
29 references to IPipelineOutputSnapshotter
Aspire.Hosting (7)
Pipelines\PipelineOutputDiffingExtensions.cs (7)
125
where TSnapshotter : class,
IPipelineOutputSnapshotter
<TSnapshot>
164
where TSnapshotter : class,
IPipelineOutputSnapshotter
<TSnapshot>
179
builder.Services.TryAddTransient<
IPipelineOutputSnapshotter
<TSnapshot>, TSnapshotter>();
199
var
snapshotter = context.Services.GetRequiredService<
IPipelineOutputSnapshotter
<TSnapshot>>();
211
var
snapshotter = context.Services.GetRequiredService<
IPipelineOutputSnapshotter
<TSnapshot>>();
Aspire.Hosting.Tests (22)
Pipelines\PipelineOutputDiffingLifetimeTests.cs (2)
39
builder.Services.AddTransient<
IPipelineOutputSnapshotter
<LifetimeSnapshot>>(_ =>
147
builder.Services.AddTransient<
IPipelineOutputSnapshotter
<LifetimeSnapshot>>(_ =>
Pipelines\PipelineOutputDiffingTests.cs (15)
38
var
snapshotter = app.Services.GetService<
IPipelineOutputSnapshotter
<PipelineOutputSnapshot>>();
225
builder.Services.AddSingleton<
IPipelineOutputSnapshotter
<RecordingSnapshot>>(snapshotter);
307
builder.Services.AddTransient<
IPipelineOutputSnapshotter
<PipelineOutputSnapshot>>(_ => throw new InvalidOperationException("typed snapshotter resolved"));
331
builder.Services.AddSingleton<
IPipelineOutputSnapshotter
<RecordingSnapshot>>(snapshotter);
366
builder.Services.AddTransient<
IPipelineOutputSnapshotter
<PipelineOutputSnapshot>>(_ => throw new InvalidOperationException("typed snapshotter resolved"));
652
builder.Services.AddSingleton<
IPipelineOutputSnapshotter
<RecordingSnapshot>>(snapshotter);
737
builder.Services.AddTransient<
IPipelineOutputSnapshotter
<RecordingSnapshot>>(_ =>
779
builder.Services.AddTransient<
IPipelineOutputSnapshotter
<RecordingSnapshot>>(_ =>
839
builder.Services.AddSingleton<
IPipelineOutputSnapshotter
<RecordingSnapshot>>(snapshotter);
870
builder.Services.AddSingleton<
IPipelineOutputSnapshotter
<RecordingSnapshot>>(snapshotter);
896
builder.Services.AddSingleton<
IPipelineOutputSnapshotter
<RecordingSnapshot>>(snapshotter);
976
builder.Services.AddTransient<
IPipelineOutputSnapshotter
<GitSnapshot>>(_ => new GitSnapshotter(workspace.Path));
1012
builder.Services.AddSingleton<
IPipelineOutputSnapshotter
<RecordingSnapshot>>(snapshotter);
1013
builder.Services.AddSingleton<
IPipelineOutputSnapshotter
<string>>(directories);
Pipelines\PipelineOutputResolutionTests.cs (3)
38
builder.Services.AddSingleton<
IPipelineOutputSnapshotter
<ContentSnapshot>>(Create);
42
builder.Services.AddTransient<
IPipelineOutputSnapshotter
<ContentSnapshot>>(Create);
82
builder.Services.AddSingleton<
IPipelineOutputSnapshotter
<int>>(snapshotter);
Pipelines\PipelineOutputStrategyTests.cs (2)
662
var
nativeSnapshotter = throughDi ? app.Services.GetRequiredService<
IPipelineOutputSnapshotter
<PipelineOutputSnapshot>>() : new DefaultPipelineOutputSnapshotter(snapshotter, new DefaultProcessRunner(), Options.Create(new PipelineOutputDiffOptions { Mode = mode }));