29 writes to Action
Aspire.Hosting.Tests (29)
Pipelines\PipelineOutputDiffingTests.cs (7)
98options.Rules.Add(new() { Action = "Include", Pattern = "generated/**" }); 101options.Rules.Add(new() { Action = "Exclude", Pattern = "**/*.tmp" })); 527builder.Services.PostConfigure<PipelineOutputDiffOptions>(options => options.Rules.Add(new() { Action = "Exclude", Pattern = "**/*.tmp" })); 926options.Rules.Add(new() { Action = "Include", Pattern = "**/*" }); 927options.Rules.Add(new() { Action = "Exclude", Pattern = "*.tmp" }); 938rule.Action = "Include"; 941options.Rules.Add(new() { Action = "Exclude", Pattern = "included.txt" });
Pipelines\PipelineOutputSelectionTests.cs (18)
38options.Rules.Add(new() { Action = "Include", Pattern = "**/*" }); 39options.Rules.Add(new() { Action = "Exclude", Pattern = ".gitignore" }); 40options.Rules.Add(new() { Action = "exclude", Pattern = "src/**" }); 41options.Rules.Add(new() { Action = "INCLUDE", Pattern = "src/Ev2OutputRoot/**" }); 42options.Rules.Add(new() { Action = "Exclude", Pattern = "**/*.tmp" }); 73options.Rules.Add(new() { Action = "Include", Pattern = "artifacts/**/*.json" }); 109? new() { Action = "Include", Pattern = "**/*.json" } 110: new() { Action = "Exclude", Pattern = "**/*.tmp" }); 175options.Rules.Add(new() { Action = "Include", Pattern = includeLink ? "ignored/child" : "ignored/child/**" }); 225options.Rules.Add(new() { Action = "Include", Pattern = "ignored*" }); 226options.Rules.Add(new() { Action = "Include", Pattern = "control.txt" }); 285options.Rules.Add(new() { Action = "Exclude", Pattern = "**/*" }); 343options.Rules.Add(new() { Action = "Include", Pattern = "artifact.txt" }); 432builder.Services.PostConfigure<PipelineOutputDiffOptions>(options => options.Rules.Add(new() { Action = "Include", Pattern = "special.txt" })); 510options.Rules.Add(new() { Action = "Include", Pattern = "**/*" }); 511options.Rules.Add(new() { Action = "Exclude", Pattern = "**/*.tmp" }); 532options.Rules.Add(new() { Action = "Exclude", Pattern = "**/*" }); 533options.Rules.Add(new() { Action = "Include", Pattern = pattern });
Pipelines\PipelineOutputStrategyTests.cs (4)
56options.Rules.Add(new() { Action = "Include", Pattern = "**/*" }); 57options.Rules.Add(new() { Action = "Exclude", Pattern = "**/.git" }); 58options.Rules.Add(new() { Action = "Exclude", Pattern = "**/.git/**" }); 63options.Rules.Add(new() { Action = "Include", Pattern = "**/*" });
5 references to Action
Aspire.Hosting (3)
Pipelines\DefaultPipelineOutputSnapshotter.cs (1)
37if (string.Equals(rule.Action, "Include", StringComparison.OrdinalIgnoreCase))
Pipelines\PipelineOutputDiffOptionsValidator.cs (2)
30if (!string.Equals(rule.Action, "Include", StringComparison.OrdinalIgnoreCase) && 31!string.Equals(rule.Action, "Exclude", StringComparison.OrdinalIgnoreCase))
Aspire.Hosting.Tests (2)
Pipelines\PipelineOutputDiffingTests.cs (2)
935var rule = Assert.Single(options.Rules, rule => rule.Action == "Exclude"); 936Assert.Equal("Exclude", rule.Action);