65 instantiations of PipelineStep
Aspire.Hosting (12)
ApplicationModel\ProjectResource.cs (1)
38var buildStep = new PipelineStep
ContainerResourceBuilderExtensions.cs (1)
38var buildStep = new PipelineStep
Pipelines\DistributedApplicationPipeline.cs (9)
36_steps.Add(new PipelineStep 42var parameterPromptingStep = new PipelineStep 57_steps.Add(new PipelineStep 133_steps.Add(new PipelineStep 139_steps.Add(new PipelineStep 146_steps.Add(new PipelineStep 152_steps.Add(new PipelineStep 159_steps.Add(new PipelineStep 187var step = new PipelineStep
Publishing\ManifestPublishingExtensions.cs (1)
26var 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)
64var publishStep = new PipelineStep 102var prepareStep = new PipelineStep 111var dockerComposeUpStep = new PipelineStep 121var 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 1547pipeline.AddStep(new PipelineStep 1554pipeline.AddStep(new PipelineStep 1561pipeline.AddStep(new PipelineStep 1594new PipelineStep 1599new PipelineStep 1610return new PipelineStep 1643new PipelineStep 1649new PipelineStep 1743.WithPipelineStepFactory((factoryContext) => new PipelineStep 1780pipeline.AddStep(new PipelineStep 1791pipeline.AddStep(new PipelineStep 1802pipeline.AddStep(new PipelineStep 1813pipeline.AddStep(new PipelineStep
Publishers.AppHost (1)
DistributedApplicationBuilderExtensions.cs (1)
24var step = new PipelineStep
163 references to PipelineStep
Aspire.Hosting (108)
ApplicationModel\ProjectResource.cs (1)
38var buildStep = new PipelineStep
ContainerResourceBuilderExtensions.cs (1)
38var buildStep = new PipelineStep
Pipelines\DistributedApplicationPipeline.cs (62)
24private readonly List<PipelineStep> _steps = []; 28private List<PipelineStep>? _lastResolvedSteps; 42var parameterPromptingStep = new PipelineStep 187var step = new PipelineStep 206private static void AddDependencies(PipelineStep step, object dependsOn) 227private static void AddRequiredBy(PipelineStep step, object requiredBy) 248public void AddStep(PipelineStep step) 299List<PipelineStep> steps, 300Dictionary<string, PipelineStep> stepsByName) 302foreach (var step in steps) 306if (!stepsByName.TryGetValue(requiredByStep, out var requiredByStepObj)) 322private static (List<PipelineStep> StepsToExecute, Dictionary<string, PipelineStep> StepsByName) FilterStepsForExecution( 323List<PipelineStep> allSteps, 335if (!allStepsByName.TryGetValue(stepName, out var targetStep)) 351private static List<PipelineStep> ComputeTransitiveDependencies( 352PipelineStep step, 353Dictionary<string, PipelineStep> stepsByName) 356var result = new List<PipelineStep>(); 365if (!stepsByName.TryGetValue(stepName, out var currentStep)) 384private static async Task<List<PipelineStep>> CollectStepsFromAnnotationsAsync(PipelineContext context) 386var steps = new List<PipelineStep>(); 402foreach (var step in annotationSteps) 415List<PipelineStep> allSteps) 449private static void ValidateSteps(IEnumerable<PipelineStep> steps) 453foreach (var step in steps) 462foreach (var step in steps) 489List<PipelineStep> steps, 490Dictionary<string, PipelineStep> stepsByName, 508foreach (var step in steps) 514async Task ExecuteStepWithDependencies(PipelineStep step) 604var step = steps[i]; 685List<PipelineStep> steps, 686Dictionary<string, PipelineStep> stepsByName) 692foreach (var step in steps) 720if (stepsByName.TryGetValue(stepName, out var step)) 734foreach (var step in steps) 743private static async Task ExecuteStepAsync(PipelineStep step, PipelineStepContext stepContext) 762List<PipelineStep> allSteps, 795var step = executionOrder[i]; 807foreach (var step in allSteps.OrderBy(s => s.Name, StringComparer.Ordinal)) 857foreach (var step in allSteps) 879foreach (var step in orphanedSteps) 899foreach (var targetStep in allSteps.OrderBy(s => s.Name, StringComparer.Ordinal)) 958PipelineStep step, 959Dictionary<string, PipelineStep> stepsByName, 973if (stepsByName.TryGetValue(depName, out var depStep)) 988private static int GetExecutionLevel(PipelineStep step, Dictionary<string, PipelineStep> stepsByName) 998List<PipelineStep> steps, 999Dictionary<string, PipelineStep> stepsByName) 1003foreach (var step in steps) 1012PipelineStep step, 1013Dictionary<string, PipelineStep> stepsByName, 1031if (stepsByName.TryGetValue(depName, out var depStep)) 1045private static List<PipelineStep> GetTopologicalOrder(List<PipelineStep> steps) 1049var result = new List<PipelineStep>(); 1051void Visit(PipelineStep step) 1062if (stepsByName.TryGetValue(depName, out var depStep)) 1073foreach (var step in sortedSteps) 1094foreach (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 (24)
20public static IEnumerable<PipelineStep> DependsOn(this IEnumerable<PipelineStep> steps, PipelineStep? step) 27foreach (var s in steps) 41public static IEnumerable<PipelineStep> DependsOn(this IEnumerable<PipelineStep> steps, string stepName) 48foreach (var s in steps) 62public static IEnumerable<PipelineStep> DependsOn(this IEnumerable<PipelineStep> steps, IEnumerable<PipelineStep> targetSteps) 64foreach (var step in targetSteps) 66foreach (var s in steps) 81public static IEnumerable<PipelineStep> RequiredBy(this IEnumerable<PipelineStep> steps, PipelineStep? step) 88foreach (var s in steps) 102public static IEnumerable<PipelineStep> RequiredBy(this IEnumerable<PipelineStep> steps, string stepName) 109foreach (var s in steps) 123public static IEnumerable<PipelineStep> RequiredBy(this IEnumerable<PipelineStep> steps, IEnumerable<PipelineStep> targetSteps) 125foreach (var step in targetSteps) 127foreach (var s in steps)
Pipelines\PipelineStepFactoryExtensions.cs (4)
24Func<PipelineStepFactoryContext, PipelineStep> factory) where T : IResource 41Func<PipelineStepFactoryContext, Task<PipelineStep>> factory) where T : IResource 58Func<PipelineStepFactoryContext, IEnumerable<PipelineStep>> factory) where T : IResource 75Func<PipelineStepFactoryContext, Task<IEnumerable<PipelineStep>>> factory) where T : IResource
Publishing\ManifestPublishingExtensions.cs (1)
26var 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)
62var steps = new List<PipelineStep>(); 64var publishStep = new PipelineStep 91foreach (var step in deploymentTargetSteps) 102var prepareStep = new PipelineStep 111var dockerComposeUpStep = new PipelineStep 121var dockerComposeDownStep = new PipelineStep
Aspire.Hosting.Kubernetes (1)
KubernetesEnvironmentResource.cs (1)
89var step = new PipelineStep
Aspire.Hosting.Tests (22)
Helpers\JsonDocumentManifestPublisher.cs (1)
71var step = new PipelineStep
Pipelines\DistributedApplicationPipelineTests.cs (20)
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>(); 1527var step1 = configContext.Steps.First(s => s.Name == "step1"); 1528var step2 = configContext.Steps.First(s => s.Name == "step2"); 1545var foundSteps = new List<PipelineStep>(); 1588var foundSteps = new List<PipelineStep>(); 1638var foundSteps = new List<PipelineStep>(); 1830foreach (var buildStep in buildSteps) 1832foreach (var provisionStep in provisionSteps) 1838foreach (var deployStep in deploySteps) 1840foreach (var buildStep in buildSteps) 2065PipelineStep? parameterPromptingStep = null; 2066PipelineStep? deployPrereqStep = null; 2067PipelineStep? buildPrereqStep = null; 2068PipelineStep? publishPrereqStep = null;
ProjectResourceTests.cs (1)
768var buildStep = Assert.Single(steps);
Publishers.AppHost (1)
DistributedApplicationBuilderExtensions.cs (1)
24var step = new PipelineStep