59 instantiations of PipelineOutputDiffOptions
Aspire.Hosting.Tests (59)
Pipelines\PipelineOutputComparisonTests.cs (7)
29
var snapshotter = new DefaultPipelineOutputSnapshotter(new(), new DefaultProcessRunner(), Options.Create(new
PipelineOutputDiffOptions
{ Mode = PipelineOutputDiffMode.FileSystem }));
71
})), new DefaultProcessRunner(), Options.Create(new
PipelineOutputDiffOptions
{ Mode = PipelineOutputDiffMode.FileSystem }));
91
var first = new DefaultPipelineOutputSnapshotter(snapshotter, new DefaultProcessRunner(), Options.Create(new
PipelineOutputDiffOptions
{ Mode = PipelineOutputDiffMode.FileSystem }));
92
var second = new DefaultPipelineOutputSnapshotter(snapshotter, new DefaultProcessRunner(), Options.Create(new
PipelineOutputDiffOptions
{ Mode = PipelineOutputDiffMode.FileSystem }));
124
})), new DefaultProcessRunner(), Options.Create(new
PipelineOutputDiffOptions
{ Mode = PipelineOutputDiffMode.FileSystem }));
143
var snapshotter = new DefaultPipelineOutputSnapshotter(new(), new DefaultProcessRunner(), Options.Create(new
PipelineOutputDiffOptions
{ Mode = PipelineOutputDiffMode.FileSystem }));
166
var snapshotter = new DefaultPipelineOutputSnapshotter(new(), new DefaultProcessRunner(), Options.Create(new
PipelineOutputDiffOptions
{ Mode = PipelineOutputDiffMode.FileSystem }));
Pipelines\PipelineOutputGitFingerprintTests.cs (13)
41
var nativeSnapshotter = new DefaultPipelineOutputSnapshotter(new(), new DefaultProcessRunner(), Options.Create(new
PipelineOutputDiffOptions
{ Mode = useGit ? PipelineOutputDiffMode.Git : PipelineOutputDiffMode.FileSystem }));
91
var nativeSnapshotter = new DefaultPipelineOutputSnapshotter(new(), new DefaultProcessRunner(), Options.Create(new
PipelineOutputDiffOptions
()));
160
var nativeSnapshotter = new DefaultPipelineOutputSnapshotter(new(), new DefaultProcessRunner(), Options.Create(new
PipelineOutputDiffOptions
()));
210
var nativeSnapshotter = new DefaultPipelineOutputSnapshotter(new(), new DefaultProcessRunner(), Options.Create(new
PipelineOutputDiffOptions
()));
247
var nativeSnapshotter = new DefaultPipelineOutputSnapshotter(new(), new DefaultProcessRunner(), Options.Create(new
PipelineOutputDiffOptions
()));
308
var nativeSnapshotter = new DefaultPipelineOutputSnapshotter(new(), new DefaultProcessRunner(), Options.Create(new
PipelineOutputDiffOptions
()));
366
var nativeSnapshotter = new DefaultPipelineOutputSnapshotter(new(), new DefaultProcessRunner(), Options.Create(new
PipelineOutputDiffOptions
()));
409
var nativeSnapshotter = new DefaultPipelineOutputSnapshotter(new(), new DefaultProcessRunner(), Options.Create(new
PipelineOutputDiffOptions
()));
448
var nativeSnapshotter = new DefaultPipelineOutputSnapshotter(new(), new DefaultProcessRunner(), Options.Create(new
PipelineOutputDiffOptions
()));
492
var nativeSnapshotter = new DefaultPipelineOutputSnapshotter(new(), new DefaultProcessRunner(), Options.Create(new
PipelineOutputDiffOptions
()));
547
var nativeSnapshotter = new DefaultPipelineOutputSnapshotter(new(), new DefaultProcessRunner(), Options.Create(new
PipelineOutputDiffOptions
()));
580
var nativeSnapshotter = new DefaultPipelineOutputSnapshotter(new(), new DefaultProcessRunner(), Options.Create(new
PipelineOutputDiffOptions
()));
598
var nativeSnapshotter = new DefaultPipelineOutputSnapshotter(new(), new DefaultProcessRunner(), Options.Create(new
PipelineOutputDiffOptions
()));
Pipelines\PipelineOutputResolutionTests.cs (1)
181
var snapshotter = new DefaultPipelineOutputSnapshotter(new(), runner, Options.Create(new
PipelineOutputDiffOptions
()));
Pipelines\PipelineOutputSelectionTests.cs (26)
37
var options = new
PipelineOutputDiffOptions
{ Mode = mode };
72
var options = new
PipelineOutputDiffOptions
{ Mode = mode };
107
var options = new
PipelineOutputDiffOptions
{ Mode = mode };
127
var selected = await SelectAsync(
new
() { Mode = mode }, workspace.Path);
147
var options = new
PipelineOutputDiffOptions
{ Mode = mode };
174
var options = new
PipelineOutputDiffOptions
{ Mode = useGit ? PipelineOutputDiffMode.Git : PipelineOutputDiffMode.FileSystem };
222
var options = new
PipelineOutputDiffOptions
();
281
var options = new
PipelineOutputDiffOptions
{ Mode = PipelineOutputDiffMode.FileSystem };
302
var nativeSnapshotter = new DefaultPipelineOutputSnapshotter(new(), new DefaultProcessRunner(), Options.Create(new
PipelineOutputDiffOptions
()));
341
var options = new
PipelineOutputDiffOptions
{ Mode = mode };
370
var nativeSnapshotter = new DefaultPipelineOutputSnapshotter(new(), new DefaultProcessRunner(), Options.Create(new
PipelineOutputDiffOptions
()));
396
var nativeSnapshotter = new DefaultPipelineOutputSnapshotter(new(), new DefaultProcessRunner(), Options.Create(new
PipelineOutputDiffOptions
()));
509
var options = new
PipelineOutputDiffOptions
{ Mode = PipelineOutputDiffMode.FileSystem };
531
var options = new
PipelineOutputDiffOptions
{ Mode = PipelineOutputDiffMode.FileSystem };
680
var nativeSnapshotter = new DefaultPipelineOutputSnapshotter(new(), new DefaultProcessRunner(), Options.Create(new
PipelineOutputDiffOptions
()));
682
Assert.Equal(new[] { tracked }, await SelectAsync(
new
(), root));
692
Assert.Equal(new[] { original }, await SelectAsync(
new
(), root));
754
var nativeSnapshotter = new DefaultPipelineOutputSnapshotter(new(), new DefaultProcessRunner(), Options.Create(new
PipelineOutputDiffOptions
()));
756
(await SelectAsync(
new
(), root)).Order(PipelineOutputRoot.PathComparer));
806
Assert.Equal(new[] { visible }, await SelectAsync(
new
(), root));
807
var nativeSnapshotter = new DefaultPipelineOutputSnapshotter(new(), new DefaultProcessRunner(), Options.Create(new
PipelineOutputDiffOptions
()));
816
Assert.Equal(new[] { visible }, await SelectAsync(
new
(), root));
851
var paths = await SelectAsync(
new
(), root);
852
var nativeSnapshotter = new DefaultPipelineOutputSnapshotter(new(), new DefaultProcessRunner(), Options.Create(new
PipelineOutputDiffOptions
()));
885
var paths = await SelectAsync(
new
(), root);
896
var failure = await Assert.ThrowsAsync<DistributedApplicationException>(() => SelectAsync(
new
(), root));
Pipelines\PipelineOutputStrategyTests.cs (12)
26
var nativeSnapshotter = new DefaultPipelineOutputSnapshotter(new(), runner, Options.Create(new
PipelineOutputDiffOptions
{ Mode = PipelineOutputDiffMode.FileSystem }));
48
var options = new
PipelineOutputDiffOptions
{ Mode = PipelineOutputDiffMode.FileSystem };
76
var options = new
PipelineOutputDiffOptions
{ Mode = PipelineOutputDiffMode.Git };
95
var nativeSnapshotter = new DefaultPipelineOutputSnapshotter(new(), runner, Options.Create(new
PipelineOutputDiffOptions
()));
115
var nativeSnapshotter = new DefaultPipelineOutputSnapshotter(new(), runner, Options.Create(new
PipelineOutputDiffOptions
{ Mode = mode }));
134
var nativeSnapshotter = new DefaultPipelineOutputSnapshotter(new(), runner, Options.Create(new
PipelineOutputDiffOptions
{ Mode = mode }));
180
var nativeSnapshotter = new DefaultPipelineOutputSnapshotter(new(), runner, Options.Create(new
PipelineOutputDiffOptions
()));
229
var nativeSnapshotter = new DefaultPipelineOutputSnapshotter(new(), runner, Options.Create(new
PipelineOutputDiffOptions
()));
272
var nativeSnapshotter = new DefaultPipelineOutputSnapshotter(new(), runner, Options.Create(new
PipelineOutputDiffOptions
()));
590
var native = new DefaultPipelineOutputSnapshotter(new(), new DefaultProcessRunner(), Options.Create(new
PipelineOutputDiffOptions
()));
598
})), new DefaultProcessRunner(), Options.Create(new
PipelineOutputDiffOptions
()));
662
var nativeSnapshotter = throughDi ? app.Services.GetRequiredService<IPipelineOutputSnapshotter<PipelineOutputSnapshot>>() : new DefaultPipelineOutputSnapshotter(snapshotter, new DefaultProcessRunner(), Options.Create(new
PipelineOutputDiffOptions
{ Mode = mode }));
41 references to PipelineOutputDiffOptions
Aspire.Hosting (7)
Pipelines\DefaultPipelineOutputSnapshotter.cs (2)
25
public DefaultPipelineOutputSnapshotter(PipelineOutputSnapshotter snapshotter, IProcessRunner processRunner, IOptions<
PipelineOutputDiffOptions
> options)
29
var
policy = options.Value;
Pipelines\PipelineOutputDiffingExtensions.cs (3)
172
descriptor.ServiceType == typeof(IValidateOptions<
PipelineOutputDiffOptions
>) &&
175
builder.Services.Configure<
PipelineOutputDiffOptions
>(builder.Configuration.GetSection("Pipeline:OutputDiff"));
176
builder.Services.AddSingleton<IValidateOptions<
PipelineOutputDiffOptions
>, PipelineOutputDiffOptionsValidator>();
Pipelines\PipelineOutputDiffOptionsValidator.cs (2)
13
internal sealed class PipelineOutputDiffOptionsValidator : IValidateOptions<
PipelineOutputDiffOptions
>
15
public ValidateOptionsResult Validate(string? name,
PipelineOutputDiffOptions
options)
Aspire.Hosting.Tests (34)
Pipelines\PipelineOutputDiffingTests.cs (13)
40
var
options = app.Services.GetRequiredService<IOptions<
PipelineOutputDiffOptions
>>().Value;
70
builder.Services.Configure<
PipelineOutputDiffOptions
>(options =>
77
var
options = app.Services.GetRequiredService<IOptions<
PipelineOutputDiffOptions
>>().Value;
95
builder.Services.Configure<
PipelineOutputDiffOptions
>(options =>
100
builder.Services.PostConfigure<
PipelineOutputDiffOptions
>(options =>
191
builder.Services.Configure<
PipelineOutputDiffOptions
>(options => options.Mode = PipelineOutputDiffMode.FileSystem);
526
builder.Services.Configure<
PipelineOutputDiffOptions
>(options => options.Rules[0].Pattern = "generated/**");
527
builder.Services.PostConfigure<
PipelineOutputDiffOptions
>(options => options.Rules.Add(new() { Action = "Exclude", Pattern = "**/*.tmp" }));
923
builder.Services.Configure<
PipelineOutputDiffOptions
>(options =>
933
var
options = context.Services.GetRequiredService<Microsoft.Extensions.Options.IOptions<
PipelineOutputDiffOptions
>>().Value;
Pipelines\PipelineOutputResolutionTests.cs (1)
124
builder.Services.Configure<
PipelineOutputDiffOptions
>(options => options.Mode = mode);
Pipelines\PipelineOutputSelectionTests.cs (17)
37
var
options = new PipelineOutputDiffOptions { Mode = mode };
72
var
options = new PipelineOutputDiffOptions { Mode = mode };
107
var
options = new PipelineOutputDiffOptions { Mode = mode };
147
var
options = new PipelineOutputDiffOptions { Mode = mode };
174
var
options = new PipelineOutputDiffOptions { Mode = useGit ? PipelineOutputDiffMode.Git : PipelineOutputDiffMode.FileSystem };
222
var
options = new PipelineOutputDiffOptions();
281
var
options = new PipelineOutputDiffOptions { Mode = PipelineOutputDiffMode.FileSystem };
341
var
options = new PipelineOutputDiffOptions { Mode = mode };
432
builder.Services.PostConfigure<
PipelineOutputDiffOptions
>(options => options.Rules.Add(new() { Action = "Include", Pattern = "special.txt" }));
435
var
options = app.Services.GetRequiredService<IOptions<
PipelineOutputDiffOptions
>>().Value;
466
builder.Services.Configure<
PipelineOutputDiffOptions
>(options => options.Mode = mode);
470
var options = app.Services.GetRequiredService<IOptions<
PipelineOutputDiffOptions
>>();
499
var options = app.Services.GetRequiredService<IOptions<
PipelineOutputDiffOptions
>>();
509
var
options = new PipelineOutputDiffOptions { Mode = PipelineOutputDiffMode.FileSystem };
531
var
options = new PipelineOutputDiffOptions { Mode = PipelineOutputDiffMode.FileSystem };
900
private static async Task<IReadOnlyList<string>> SelectAsync(
PipelineOutputDiffOptions
options, string directory)
Pipelines\PipelineOutputStrategyTests.cs (3)
48
var
options = new PipelineOutputDiffOptions { Mode = PipelineOutputDiffMode.FileSystem };
76
var
options = new PipelineOutputDiffOptions { Mode = PipelineOutputDiffMode.Git };
660
builder.Services.Configure<
PipelineOutputDiffOptions
>(options => options.Mode = mode);