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)
98 references to AddStep
Aspire.Hosting.Tests (98)
Pipelines\DistributedApplicationPipelineTests.cs (98)
34pipeline.AddStep("dependency", context => 39pipeline.AddStep("target", _ => Task.CompletedTask, dependsOn: "dependency"); 40pipeline.AddStep("unselected", _ => throw new InvalidOperationException("Unselected step executed.")); 74pipeline.AddStep("step1", async (context) => 93pipeline.AddStep("step1", async (context) => 99pipeline.AddStep("step2", async (context) => 105pipeline.AddStep("step3", async (context) => 127pipeline.AddStep("step1", async (context) => 133pipeline.AddStep("step2", async (context) => 139pipeline.AddStep("step3", async (context) => 158pipeline.AddStep("step1", async (context) => 164pipeline.AddStep("step2", async (context) => 170pipeline.AddStep("step3", async (context) => 189pipeline.AddStep("step1", async (context) => 195pipeline.AddStep("step2", async (context) => 201pipeline.AddStep("step3", async (context) => 228pipeline.AddStep("level1-step1", async (context) => 234pipeline.AddStep("level1-step2", async (context) => 240pipeline.AddStep("level2-step1", (context) => 246pipeline.AddStep("level2-step2", (context) => 252pipeline.AddStep("level3-step1", (context) => 294pipeline.AddStep("regular-step", async (context) => 352pipeline.AddStep("step1", async (context) => await Task.CompletedTask); 354var ex = Assert.Throws<InvalidOperationException>(() => pipeline.AddStep("step1", async (context) => await Task.CompletedTask)); 365pipeline.AddStep("step1", async (context) => await Task.CompletedTask, dependsOn: "unknown-step"); 380pipeline.AddStep("step1", async (context) => await Task.CompletedTask, requiredBy: "unknown-step"); 427pipeline.AddStep("failing-step", async (context) => 450pipeline.AddStep("a", async (context) => 456pipeline.AddStep("b", async (context) => 462pipeline.AddStep("c", async (context) => 468pipeline.AddStep("d", async (context) => 474pipeline.AddStep("e", async (context) => 505pipeline.AddStep("step1", async (context) => 511pipeline.AddStep("step2", async (context) => 517pipeline.AddStep("step3", async (context) => 541pipeline.AddStep("step1", async (context) => 547pipeline.AddStep("step2", async (context) => 553pipeline.AddStep("step3", async (context) => 576pipeline.AddStep("step1", async (context) => 592pipeline.AddStep("step1", async (context) => 597pipeline.AddStep("step2", async (context) => 613pipeline.AddStep("step1", async (context) => await Task.CompletedTask, dependsOn: 123)); 624pipeline.AddStep("step1", async (context) => await Task.CompletedTask, requiredBy: 123)); 634pipeline.AddStep("step1", async (context) => await Task.CompletedTask); 637pipeline.AddStep("step1", async (context) => await Task.CompletedTask)); 678pipeline.AddStep("failing-step", async (context) => 706pipeline.AddStep("failing-dependency", async (context) => 713pipeline.AddStep("dependent-step", async (context) => 782pipeline.AddStep("step1", async (context) => 789pipeline.AddStep("step2", async (context) => 813pipeline.AddStep("failing-step", (context) => 820pipeline.AddStep("independent-step", async (context) => 844pipeline.AddStep("failing-step", (context) => 851pipeline.AddStep("long-running-step", async (context) => 876pipeline.AddStep("failing-step", (context) => 883pipeline.AddStep("dependent-step", async (context) => 890pipeline.AddStep("independent-step", async (context) => 912pipeline.AddStep("failing-step", async (context) => 942pipeline.AddStep("failing-step", _ => Task.FromException(expected)); 964pipeline.AddStep("A", async (context) => 970pipeline.AddStep("B", async (context) => 976pipeline.AddStep("C", async (context) => 982pipeline.AddStep("D", async (context) => 1195pipeline.AddStep("logging-step", (context) => 1227pipeline.AddStep("step1", async (context) => 1239pipeline.AddStep("step2", (context) => 1282pipeline.AddStep("failing-step", async (context) => 1322pipeline.AddStep($"step{stepNumber}", (context) => 1385pipeline.AddStep("logging-step", (context) => 1454pipeline.AddStep("step1", async (context) => await Task.CompletedTask); 1455pipeline.AddStep("step2", async (context) => await Task.CompletedTask); 1496pipeline.AddStep("step1", async (context) => 1502pipeline.AddStep("step2", async (context) => 1739pipeline.AddStep("direct-step", async (context) => await Task.CompletedTask); 1852pipeline.AddStep("step1", async (context) => await Task.CompletedTask); 1853pipeline.AddStep("step2", async (context) => await Task.CompletedTask); 1854pipeline.AddStep("step3", async (context) => await Task.CompletedTask); 1875pipeline.AddStep("step1", async (context) => 1881pipeline.AddStep("step2", async (context) => 1887pipeline.AddStep("step3", async (context) => 1893pipeline.AddStep("step4", async (context) => 1899pipeline.AddStep("step5", async (context) => 1905pipeline.AddStep("step6", async (context) => 1943pipeline.AddStep("step1", async (context) => 1949pipeline.AddStep("independent-step", async (context) => 1955pipeline.AddStep("step3", async (context) => 1986pipeline.AddStep("provision-resource1", (context) => 1995pipeline.AddStep("provision-resource2", (context) => 2004pipeline.AddStep("provision-infra", (context) => 2013pipeline.AddStep("my-deploy-step", (context) => 2112pipeline.AddStep("root", _ => Task.CompletedTask); 2113pipeline.AddStep("child", _ => Task.CompletedTask, dependsOn: "root"); 2114pipeline.AddStep("grandchild", _ => Task.CompletedTask, dependsOn: "child"); 2267pipeline.AddStep("custom-step", _ => Task.CompletedTask); 2285pipeline.AddStep("step", _ => 2314pipeline.AddStep("step", _ => Task.CompletedTask); 2359pipeline.AddStep("available-step", _ => Task.CompletedTask); 2447pipeline.AddStep("should-not-execute", _ =>