Implemented interface member:
method
AddStep
Aspire.Hosting.Pipelines.IDistributedApplicationPipeline.AddStep(System.String, System.Func<Aspire.Hosting.Pipelines.PipelineStepContext, System.Threading.Tasks.Task>, System.Object, System.Object)
104 references to AddStep
Aspire.Hosting.Tests (104)
Pipelines\DistributedApplicationPipelineTests.cs (104)
63pipeline.AddStep("dependency", context => 68pipeline.AddStep("target", _ => Task.CompletedTask, dependsOn: "dependency"); 69pipeline.AddStep("unselected", _ => throw new InvalidOperationException("Unselected step executed.")); 103pipeline.AddStep("step1", async (context) => 122pipeline.AddStep("step1", async (context) => 128pipeline.AddStep("step2", async (context) => 134pipeline.AddStep("step3", async (context) => 156pipeline.AddStep("step1", async (context) => 162pipeline.AddStep("step2", async (context) => 168pipeline.AddStep("step3", async (context) => 187pipeline.AddStep("step1", async (context) => 193pipeline.AddStep("step2", async (context) => 199pipeline.AddStep("step3", async (context) => 218pipeline.AddStep("step1", async (context) => 224pipeline.AddStep("step2", async (context) => 230pipeline.AddStep("step3", async (context) => 257pipeline.AddStep("level1-step1", async (context) => 263pipeline.AddStep("level1-step2", async (context) => 269pipeline.AddStep("level2-step1", (context) => 275pipeline.AddStep("level2-step2", (context) => 281pipeline.AddStep("level3-step1", (context) => 323pipeline.AddStep("regular-step", async (context) => 381pipeline.AddStep("step1", async (context) => await Task.CompletedTask); 383var ex = Assert.Throws<InvalidOperationException>(() => pipeline.AddStep("step1", async (context) => await Task.CompletedTask)); 394pipeline.AddStep("step1", async (context) => await Task.CompletedTask, dependsOn: "unknown-step"); 409pipeline.AddStep("step1", async (context) => await Task.CompletedTask, requiredBy: "unknown-step"); 456pipeline.AddStep("failing-step", async (context) => 479pipeline.AddStep("a", async (context) => 485pipeline.AddStep("b", async (context) => 491pipeline.AddStep("c", async (context) => 497pipeline.AddStep("d", async (context) => 503pipeline.AddStep("e", async (context) => 534pipeline.AddStep("step1", async (context) => 540pipeline.AddStep("step2", async (context) => 546pipeline.AddStep("step3", async (context) => 570pipeline.AddStep("step1", async (context) => 576pipeline.AddStep("step2", async (context) => 582pipeline.AddStep("step3", async (context) => 605pipeline.AddStep("step1", async (context) => 621pipeline.AddStep("step1", async (context) => 626pipeline.AddStep("step2", async (context) => 642pipeline.AddStep("step1", async (context) => await Task.CompletedTask, dependsOn: 123)); 653pipeline.AddStep("step1", async (context) => await Task.CompletedTask, requiredBy: 123)); 663pipeline.AddStep("step1", async (context) => await Task.CompletedTask); 666pipeline.AddStep("step1", async (context) => await Task.CompletedTask)); 707pipeline.AddStep("failing-step", async (context) => 735pipeline.AddStep("failing-dependency", async (context) => 742pipeline.AddStep("dependent-step", async (context) => 811pipeline.AddStep("step1", async (context) => 818pipeline.AddStep("step2", async (context) => 842pipeline.AddStep("failing-step", (context) => 849pipeline.AddStep("independent-step", async (context) => 873pipeline.AddStep("failing-step", (context) => 880pipeline.AddStep("long-running-step", async (context) => 905pipeline.AddStep("failing-step", (context) => 912pipeline.AddStep("dependent-step", async (context) => 919pipeline.AddStep("independent-step", async (context) => 941pipeline.AddStep("failing-step", async (context) => 971pipeline.AddStep("failing-step", _ => Task.FromException(expected)); 993pipeline.AddStep("A", async (context) => 999pipeline.AddStep("B", async (context) => 1005pipeline.AddStep("C", async (context) => 1011pipeline.AddStep("D", async (context) => 1224pipeline.AddStep("logging-step", (context) => 1256pipeline.AddStep("step1", async (context) => 1268pipeline.AddStep("step2", (context) => 1311pipeline.AddStep("failing-step", async (context) => 1351pipeline.AddStep($"step{stepNumber}", (context) => 1414pipeline.AddStep("logging-step", (context) => 1483pipeline.AddStep("step1", async (context) => await Task.CompletedTask); 1484pipeline.AddStep("step2", async (context) => await Task.CompletedTask); 1525pipeline.AddStep("step1", async (context) => 1531pipeline.AddStep("step2", async (context) => 1768pipeline.AddStep("direct-step", async (context) => await Task.CompletedTask); 1881pipeline.AddStep("step1", async (context) => await Task.CompletedTask); 1882pipeline.AddStep("step2", async (context) => await Task.CompletedTask); 1883pipeline.AddStep("step3", async (context) => await Task.CompletedTask); 1904pipeline.AddStep("step1", async (context) => 1910pipeline.AddStep("step2", async (context) => 1916pipeline.AddStep("step3", async (context) => 1922pipeline.AddStep("step4", async (context) => 1928pipeline.AddStep("step5", async (context) => 1934pipeline.AddStep("step6", async (context) => 1972pipeline.AddStep("step1", async (context) => 1978pipeline.AddStep("independent-step", async (context) => 1984pipeline.AddStep("step3", async (context) => 2015pipeline.AddStep("provision-resource1", (context) => 2024pipeline.AddStep("provision-resource2", (context) => 2033pipeline.AddStep("provision-infra", (context) => 2042pipeline.AddStep("my-deploy-step", (context) => 2141pipeline.AddStep("root", _ => Task.CompletedTask); 2142pipeline.AddStep("child", _ => Task.CompletedTask, dependsOn: "root"); 2143pipeline.AddStep("grandchild", _ => Task.CompletedTask, dependsOn: "child"); 2296pipeline.AddStep("custom-step", _ => Task.CompletedTask); 2332pipeline.AddStep("prepare-targets", _ => 2338pipeline.AddStep("start-job", _ => 2360pipeline.AddStep("step1", _ => Task.CompletedTask, dependsOn: "unknown-step", requiredBy: "target"); 2361pipeline.AddStep("target", _ => Task.CompletedTask); 2375pipeline.AddStep("step1", _ => Task.CompletedTask, requiredBy: new[] { "target", "unknown-step" }); 2376pipeline.AddStep("target", _ => Task.CompletedTask); 2391pipeline.AddStep("step", _ => 2420pipeline.AddStep("step", _ => Task.CompletedTask); 2465pipeline.AddStep("available-step", _ => Task.CompletedTask); 2553pipeline.AddStep("should-not-execute", _ =>