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