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