64 instantiations of PipelineStep
Aspire.Hosting (11)
ApplicationModel\ProjectResource.cs (1)
37var buildStep = new PipelineStep
ContainerResourceBuilderExtensions.cs (1)
38var buildStep = new PipelineStep
Pipelines\DistributedApplicationPipeline.cs (8)
37_steps.Add(new PipelineStep 43_steps.Add(new PipelineStep 124_steps.Add(new PipelineStep 130_steps.Add(new PipelineStep 137_steps.Add(new PipelineStep 143_steps.Add(new PipelineStep 150_steps.Add(new PipelineStep 178var step = new PipelineStep
Publishing\ManifestPublishingExtensions.cs (1)
28var step = new PipelineStep
Aspire.Hosting.Azure (5)
AzureBicepResource.cs (1)
49var provisionStep = new PipelineStep
AzureEnvironmentResource.cs (4)
71var publishStep = new PipelineStep 79var validateStep = new PipelineStep 87var createContextStep = new PipelineStep 101var provisionStep = new PipelineStep
Aspire.Hosting.Azure.AppContainers (5)
AzureContainerAppEnvironmentResource.cs (2)
35var loginToAcrStep = new PipelineStep 43var printDashboardUrlStep = new PipelineStep
AzureContainerAppResource.cs (3)
48var pushStep = new PipelineStep 74var printResourceSummary = new PipelineStep 98var deployStep = new PipelineStep
Aspire.Hosting.Azure.AppService (5)
AzureAppServiceEnvironmentResource.cs (2)
38var loginToAcrStep = new PipelineStep 46var printDashboardUrlStep = new PipelineStep
AzureAppServiceWebSiteResource.cs (3)
48var pushStep = new PipelineStep 72var printResourceSummary = new PipelineStep 92var deployStep = new PipelineStep
Aspire.Hosting.Docker (4)
DockerComposeEnvironmentResource.cs (4)
65var publishStep = new PipelineStep 103var prepareStep = new PipelineStep 112var dockerComposeUpStep = new PipelineStep 122var dockerComposeDownStep = new PipelineStep
Aspire.Hosting.Kubernetes (1)
KubernetesEnvironmentResource.cs (1)
89var step = new PipelineStep
Aspire.Hosting.Tests (32)
Helpers\JsonDocumentManifestPublisher.cs (1)
71var step = new PipelineStep
Pipelines\DistributedApplicationPipelineTests.cs (31)
250.WithPipelineStepFactory((factoryContext) => new PipelineStep 284new PipelineStep 293new PipelineStep 362var step1 = new PipelineStep 369var step2 = new PipelineStep 615.WithPipelineStepFactory((factoryContext) => new PipelineStep 622.WithPipelineStepFactory((factoryContext) => new PipelineStep 705var stepA = new PipelineStep 712var stepB = new PipelineStep 719var stepC = new PipelineStep 897return new PipelineStep 926.WithPipelineStepFactory((factoryContext) => new PipelineStep 953return new PipelineStep 980new PipelineStep 989new PipelineStep 1020new PipelineStep 1029new PipelineStep 1457var step = new PipelineStep 1546pipeline.AddStep(new PipelineStep 1553pipeline.AddStep(new PipelineStep 1560pipeline.AddStep(new PipelineStep 1593new PipelineStep 1598new PipelineStep 1609return new PipelineStep 1642new PipelineStep 1648new PipelineStep 1742.WithPipelineStepFactory((factoryContext) => new PipelineStep 1779pipeline.AddStep(new PipelineStep 1790pipeline.AddStep(new PipelineStep 1801pipeline.AddStep(new PipelineStep 1812pipeline.AddStep(new PipelineStep
Publishers.AppHost (1)
DistributedApplicationBuilderExtensions.cs (1)
24var step = new PipelineStep
158 references to PipelineStep
Aspire.Hosting (107)
ApplicationModel\ProjectResource.cs (1)
37var buildStep = new PipelineStep
ContainerResourceBuilderExtensions.cs (1)
38var buildStep = new PipelineStep
Pipelines\DistributedApplicationPipeline.cs (61)
25private readonly List<PipelineStep> _steps = []; 29private List<PipelineStep>? _lastResolvedSteps; 178var step = new PipelineStep 197private static void AddDependencies(PipelineStep step, object dependsOn) 218private static void AddRequiredBy(PipelineStep step, object requiredBy) 239public void AddStep(PipelineStep step) 290List<PipelineStep> steps, 291Dictionary<string, PipelineStep> stepsByName) 293foreach (var step in steps) 297if (!stepsByName.TryGetValue(requiredByStep, out var requiredByStepObj)) 313private static (List<PipelineStep> StepsToExecute, Dictionary<string, PipelineStep> StepsByName) FilterStepsForExecution( 314List<PipelineStep> allSteps, 326if (!allStepsByName.TryGetValue(stepName, out var targetStep)) 342private static List<PipelineStep> ComputeTransitiveDependencies( 343PipelineStep step, 344Dictionary<string, PipelineStep> stepsByName) 347var result = new List<PipelineStep>(); 356if (!stepsByName.TryGetValue(stepName, out var currentStep)) 375private static async Task<List<PipelineStep>> CollectStepsFromAnnotationsAsync(PipelineContext context) 377var steps = new List<PipelineStep>(); 393foreach (var step in annotationSteps) 406List<PipelineStep> allSteps) 440private static void ValidateSteps(IEnumerable<PipelineStep> steps) 444foreach (var step in steps) 453foreach (var step in steps) 480List<PipelineStep> steps, 481Dictionary<string, PipelineStep> stepsByName, 499foreach (var step in steps) 505async Task ExecuteStepWithDependencies(PipelineStep step) 595var step = steps[i]; 676List<PipelineStep> steps, 677Dictionary<string, PipelineStep> stepsByName) 683foreach (var step in steps) 711if (stepsByName.TryGetValue(stepName, out var step)) 725foreach (var step in steps) 734private static async Task ExecuteStepAsync(PipelineStep step, PipelineStepContext stepContext) 753List<PipelineStep> allSteps, 786var step = executionOrder[i]; 798foreach (var step in allSteps.OrderBy(s => s.Name, StringComparer.Ordinal)) 848foreach (var step in allSteps) 870foreach (var step in orphanedSteps) 890foreach (var targetStep in allSteps.OrderBy(s => s.Name, StringComparer.Ordinal)) 949PipelineStep step, 950Dictionary<string, PipelineStep> stepsByName, 964if (stepsByName.TryGetValue(depName, out var depStep)) 979private static int GetExecutionLevel(PipelineStep step, Dictionary<string, PipelineStep> stepsByName) 989List<PipelineStep> steps, 990Dictionary<string, PipelineStep> stepsByName) 994foreach (var step in steps) 1003PipelineStep step, 1004Dictionary<string, PipelineStep> stepsByName, 1022if (stepsByName.TryGetValue(depName, out var depStep)) 1036private static List<PipelineStep> GetTopologicalOrder(List<PipelineStep> steps) 1040var result = new List<PipelineStep>(); 1042void Visit(PipelineStep step) 1053if (stepsByName.TryGetValue(depName, out var depStep)) 1064foreach (var step in sortedSteps) 1085foreach (var step in _steps)
Pipelines\IDistributedApplicationPipeline.cs (1)
32void AddStep(PipelineStep step);
Pipelines\PipelineConfigurationContext.cs (5)
23public required IReadOnlyList<PipelineStep> Steps 41internal ILookup<IResource?, PipelineStep>? StepToResourceMap { get; init; } 48public IEnumerable<PipelineStep> GetSteps(string tag) 59public IEnumerable<PipelineStep> GetSteps(IResource resource) 72public IEnumerable<PipelineStep> GetSteps(IResource resource, string tag)
Pipelines\PipelineStep.cs (2)
61public void DependsOn(PipelineStep step) 81public void RequiredBy(PipelineStep step)
Pipelines\PipelineStepAnnotation.cs (7)
17private readonly Func<PipelineStepFactoryContext, Task<IEnumerable<PipelineStep>>> _factory; 23public PipelineStepAnnotation(Func<PipelineStepFactoryContext, PipelineStep> factory) 25_factory = (context) => Task.FromResult<IEnumerable<PipelineStep>>([factory(context)]); 32public PipelineStepAnnotation(Func<PipelineStepFactoryContext, Task<PipelineStep>> factory) 41public PipelineStepAnnotation(Func<PipelineStepFactoryContext, IEnumerable<PipelineStep>> factory) 50public PipelineStepAnnotation(Func<PipelineStepFactoryContext, Task<IEnumerable<PipelineStep>>> factory) 60public Task<IEnumerable<PipelineStep>> CreateStepsAsync(PipelineStepFactoryContext context) => _factory(context);
Pipelines\PipelineStepExtensions.cs (4)
26Func<PipelineStepFactoryContext, PipelineStep> factory) where T : IResource 43Func<PipelineStepFactoryContext, Task<PipelineStep>> factory) where T : IResource 60Func<PipelineStepFactoryContext, IEnumerable<PipelineStep>> factory) where T : IResource 77Func<PipelineStepFactoryContext, Task<IEnumerable<PipelineStep>>> factory) where T : IResource
Pipelines\PipelineStepsExtensions.cs (24)
22public static IEnumerable<PipelineStep> DependsOn(this IEnumerable<PipelineStep> steps, PipelineStep? step) 29foreach (var s in steps) 43public static IEnumerable<PipelineStep> DependsOn(this IEnumerable<PipelineStep> steps, string stepName) 50foreach (var s in steps) 64public static IEnumerable<PipelineStep> DependsOn(this IEnumerable<PipelineStep> steps, IEnumerable<PipelineStep> targetSteps) 66foreach (var step in targetSteps) 68foreach (var s in steps) 83public static IEnumerable<PipelineStep> RequiredBy(this IEnumerable<PipelineStep> steps, PipelineStep? step) 90foreach (var s in steps) 104public static IEnumerable<PipelineStep> RequiredBy(this IEnumerable<PipelineStep> steps, string stepName) 111foreach (var s in steps) 125public static IEnumerable<PipelineStep> RequiredBy(this IEnumerable<PipelineStep> steps, IEnumerable<PipelineStep> targetSteps) 127foreach (var step in targetSteps) 129foreach (var s in steps)
Publishing\ManifestPublishingExtensions.cs (1)
28var step = new PipelineStep
Aspire.Hosting.Azure (5)
AzureBicepResource.cs (1)
49var provisionStep = new PipelineStep
AzureEnvironmentResource.cs (4)
71var publishStep = new PipelineStep 79var validateStep = new PipelineStep 87var createContextStep = new PipelineStep 101var provisionStep = new PipelineStep
Aspire.Hosting.Azure.AppContainers (8)
AzureContainerAppEnvironmentResource.cs (4)
33var steps = new List<PipelineStep>(); 35var loginToAcrStep = new PipelineStep 43var printDashboardUrlStep = new PipelineStep 75foreach (var step in deploymentTargetSteps)
AzureContainerAppResource.cs (4)
43var steps = new List<PipelineStep>(); 48var pushStep = new PipelineStep 74var printResourceSummary = new PipelineStep 98var deployStep = new PipelineStep
Aspire.Hosting.Azure.AppService (8)
AzureAppServiceEnvironmentResource.cs (4)
36var steps = new List<PipelineStep>(); 38var loginToAcrStep = new PipelineStep 46var printDashboardUrlStep = new PipelineStep 78foreach (var step in deploymentTargetSteps)
AzureAppServiceWebSiteResource.cs (4)
43var steps = new List<PipelineStep>(); 48var pushStep = new PipelineStep 72var printResourceSummary = new PipelineStep 92var deployStep = new PipelineStep
Aspire.Hosting.Azure.Tests (1)
AzureBicepResourceTests.cs (1)
238var step = steps.First();
Aspire.Hosting.Containers.Tests (3)
WithDockerfileTests.cs (3)
787var buildStep = Assert.Single(steps); 945var buildStep = Assert.Single(steps); 980var buildStep = Assert.Single(steps);
Aspire.Hosting.Docker (6)
DockerComposeEnvironmentResource.cs (6)
63var steps = new List<PipelineStep>(); 65var publishStep = new PipelineStep 92foreach (var step in deploymentTargetSteps) 103var prepareStep = new PipelineStep 112var dockerComposeUpStep = new PipelineStep 122var dockerComposeDownStep = new PipelineStep
Aspire.Hosting.Kubernetes (1)
KubernetesEnvironmentResource.cs (1)
89var step = new PipelineStep
Aspire.Hosting.Tests (18)
Helpers\JsonDocumentManifestPublisher.cs (1)
71var step = new PipelineStep
Pipelines\DistributedApplicationPipelineTests.cs (16)
362var step1 = new PipelineStep 369var step2 = new PipelineStep 705var stepA = new PipelineStep 712var stepB = new PipelineStep 719var stepC = new PipelineStep 1457var step = new PipelineStep 1476var capturedSteps = new List<PipelineStep>(); 1526var step1 = configContext.Steps.First(s => s.Name == "step1"); 1527var step2 = configContext.Steps.First(s => s.Name == "step2"); 1544var foundSteps = new List<PipelineStep>(); 1587var foundSteps = new List<PipelineStep>(); 1637var foundSteps = new List<PipelineStep>(); 1829foreach (var buildStep in buildSteps) 1831foreach (var provisionStep in provisionSteps) 1837foreach (var deployStep in deploySteps) 1839foreach (var buildStep in buildSteps)
ProjectResourceTests.cs (1)
766var buildStep = Assert.Single(steps);
Publishers.AppHost (1)
DistributedApplicationBuilderExtensions.cs (1)
24var step = new PipelineStep