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