1 type derived from PipelineStep
Aspire.Hosting.Azure (1)
AzureAuthenticatedPipelineStep.cs (1)
13internal sealed class AzureAuthenticatedPipelineStep : PipelineStep
159 instantiations of PipelineStep
Aspire.Hosting (27)
ApplicationModel\DotnetProgramPublishing.cs (2)
47var buildStep = new PipelineStep 61var pushStep = new PipelineStep
ContainerResourceBuilderExtensions.cs (2)
62var buildStep = new PipelineStep 82var pushStep = new PipelineStep
PipelineOutputDiffingExtensions.cs (3)
51return builder.WithOutputDiffing(() => new PipelineStep 134return builder.WithOutputDiffing<TSnapshot, TSnapshotter, TComparer>(() => new PipelineStep 186pipeline.AddStep(new PipelineStep
Pipelines\DistributedApplicationPipeline.cs (17)
39_steps.Add(new PipelineStep 46var parameterPromptingStep = new PipelineStep 62_steps.Add(new PipelineStep 139_steps.Add(new PipelineStep 146_steps.Add(new PipelineStep 156_steps.Add(new PipelineStep 171var pushStep = new PipelineStep 180_steps.Add(new PipelineStep 252_steps.Add(new PipelineStep 259_steps.Add(new PipelineStep 266_steps.Add(new PipelineStep 279_steps.Add(new PipelineStep 295_steps.Add(new PipelineStep 302_steps.Add(new PipelineStep 315_steps.Add(new PipelineStep 328_steps.Add(new PipelineStep 421var step = new PipelineStep
Pipelines\PipelineStep.cs (1)
120var clone = new PipelineStep
Pipelines\PipelineStepFactoryExtensions.cs (1)
115return builder.WithPipelineStepFactory(_ => new PipelineStep
Publishing\ManifestPublishingExtensions.cs (1)
25var step = new PipelineStep
Aspire.Hosting.Azure (6)
AzureBicepResource.cs (1)
44var provisionStep = new PipelineStep
AzureEnvironmentResource.cs (5)
77var prepareResourcesStep = new PipelineStep 93var publishStep = new PipelineStep 114var createContextStep = new PipelineStep 133var provisionStep = new PipelineStep 145var destroyStep = new PipelineStep
Aspire.Hosting.Azure.AppContainers (5)
AzureContainerAppEnvironmentResource.cs (2)
65var prepareStep = new PipelineStep 85var printDashboardUrlStep = new PipelineStep
AzureContainerAppResource.cs (2)
43var printResourceSummary = new PipelineStep 74var deployStep = new PipelineStep
src\Shared\CrossScopeAcrPullIdentityPreparer.cs (1)
52new PipelineStep
Aspire.Hosting.Azure.AppService (6)
AzureAppServiceEnvironmentResource.cs (3)
98var prepareStep = new PipelineStep 111var validateStep = new PipelineStep 127var printDashboardUrlStep = new PipelineStep
AzureAppServiceWebSiteResource.cs (2)
43var printResourceSummary = new PipelineStep 72var deployStep = new PipelineStep
src\Shared\CrossScopeAcrPullIdentityPreparer.cs (1)
52new PipelineStep
Aspire.Hosting.Azure.EntraId (2)
EntraIdApplicationResource.cs (2)
66Annotations.Add(new PipelineStepAnnotation(_ => new PipelineStep 100Annotations.Add(new PipelineStepAnnotation(_ => new PipelineStep
Aspire.Hosting.Azure.Kubernetes (4)
AzureKubernetesEnvironmentResource.cs (3)
55var prepareStep = new PipelineStep 71var getCredentialsStep = new PipelineStep 82var getDestroyCredentialsStep = new PipelineStep
AzureKubernetesLoadBalancerResource.cs (1)
83var step = new PipelineStep
Aspire.Hosting.Azure.Sandboxes (6)
AzureSandboxContainerDeployment.cs (3)
64new PipelineStep 74new PipelineStep 88return new PipelineStep
AzureSandboxGroupResource.cs (2)
44new() 52new()
src\Shared\CrossScopeAcrPullIdentityPreparer.cs (1)
52new PipelineStep
Aspire.Hosting.Azure.Tests (6)
AzureApiManagementTests.cs (1)
1109var provisionStep = new PipelineStep
AzureSandboxesTests.cs (5)
2471var pushStep = new PipelineStep 2479var registryLoginStep = new PipelineStep 2512var azureDestroyStep = new PipelineStep 2518var azureNamedSandboxDestroyStep = new PipelineStep 2939var loginStep = new PipelineStep
Aspire.Hosting.Docker (7)
DockerComposeEnvironmentResource.cs (6)
70var prepareDeploymentTargetsStep = new PipelineStep 80var publishStep = new PipelineStep 120var prepareStep = new PipelineStep 131var dockerComposeUpStep = new PipelineStep 141var dockerComposeDestroyStep = new PipelineStep 199var dockerComposeDownStep = new PipelineStep
DockerComposeServiceResource.cs (1)
48var printResourceSummary = new PipelineStep
Aspire.Hosting.EntityFrameworkCore (2)
EFResourceBuilderExtensions.cs (2)
327steps.Add(new PipelineStep 371steps.Add(new PipelineStep
Aspire.Hosting.Foundry (7)
HostedAgent\AzureHostedAgentResource.cs (1)
50var agentDeployStep = new PipelineStep
Project\ProjectResource.cs (2)
46var removeDefaultContainerRegistryStep = new PipelineStep 68var computeUrls = new PipelineStep
PromptAgent\AzurePromptAgentResource.cs (2)
70var beforeStartDeployStep = new PipelineStep 82var agentDeployStep = new PipelineStep
Toolbox\FoundryToolboxResource.cs (2)
57steps.Add(new PipelineStep 70steps.Add(new PipelineStep
Aspire.Hosting.Foundry.Tests (2)
ToolboxTests.cs (2)
819var containerDeploy = new PipelineStep 899var mcpDeploy = new PipelineStep
Aspire.Hosting.Go (1)
src\Shared\PublishValidationExtensions.cs (1)
18var step = new PipelineStep
Aspire.Hosting.JavaScript (1)
src\Shared\PublishValidationExtensions.cs (1)
18var step = new PipelineStep
Aspire.Hosting.Kubernetes (16)
CertManagerExtensions.cs (2)
356var step = new PipelineStep 385var step = new PipelineStep
Deployment\HelmDeploymentEngine.cs (6)
134var checkPrereqStep = new PipelineStep 147var prepareStep = new PipelineStep 159var helmDeployStep = new PipelineStep 171var instructionsStep = new PipelineStep 183var helmDestroyStep = new PipelineStep 231var helmUninstallStep = new PipelineStep
KubernetesEnvironmentResource.cs (5)
242var prepareStep = new PipelineStep 254var publishStep = new PipelineStep 279var tlsBootstrapStep = new PipelineStep 295var fqdnDiscoveryStep = new PipelineStep 323var cleanupStep = new PipelineStep
KubernetesHelmChartExtensions.cs (2)
94var installStep = new PipelineStep 107var uninstallStep = new PipelineStep
KubernetesResource.cs (1)
34var printResourceSummary = new PipelineStep
Aspire.Hosting.Python (1)
src\Shared\PublishValidationExtensions.cs (1)
18var step = new PipelineStep
Aspire.Hosting.Radius (8)
Publishing\RadCredentialRegisterStep.cs (1)
50var step = new PipelineStep
Publishing\RadiusBicepPublishingContext.cs (1)
37var step = new PipelineStep
Publishing\RadiusDeploymentPipelineStep.cs (1)
493var step = new PipelineStep
Publishing\SealedSecretApplyStep.cs (1)
41var step = new PipelineStep
RadiusEnvironmentResource.cs (3)
46var prepareStep = new PipelineStep 62var validateSecretStoresStep = new PipelineStep 81var verifyControlPlaneStep = new PipelineStep
Secrets\RadiusSecretStoreExtensions.cs (1)
78storeBuilder.WithAnnotation(new PipelineStepAnnotation(_ => new PipelineStep
Aspire.Hosting.Rust.Tests (1)
AddRustAppPublishTests.cs (1)
339=> new()
Aspire.Hosting.Tests (49)
Pipelines\DistributedApplicationPipelineTests.cs (43)
312.WithPipelineStepFactory((factoryContext) => new PipelineStep 346new PipelineStep 355new PipelineStep 424var step1 = new PipelineStep 431var step2 = new PipelineStep 677.WithPipelineStepFactory((factoryContext) => new PipelineStep 684.WithPipelineStepFactory((factoryContext) => new PipelineStep 767var stepA = new PipelineStep 774var stepB = new PipelineStep 781var stepC = new PipelineStep 1063return new PipelineStep 1092.WithPipelineStepFactory((factoryContext) => new PipelineStep 1119return new PipelineStep 1146new PipelineStep 1155new PipelineStep 1186new PipelineStep 1195new PipelineStep 1462var step = new PipelineStep 1559pipeline.AddStep(new PipelineStep 1566pipeline.AddStep(new PipelineStep 1573pipeline.AddStep(new PipelineStep 1606new PipelineStep 1611new PipelineStep 1622return new PipelineStep 1655new PipelineStep 1661new PipelineStep 1755.WithPipelineStepFactory((factoryContext) => new PipelineStep 1792pipeline.AddStep(new PipelineStep 1803pipeline.AddStep(new PipelineStep 1814pipeline.AddStep(new PipelineStep 1825pipeline.AddStep(new PipelineStep 2319? [new PipelineStep 2483.WithPipelineStepFactory(_ => new PipelineStep 2489.WithPipelineStepFactory(_ => new PipelineStep 2509var step = new PipelineStep 2531pipeline.AddStep(new PipelineStep 2570new() { Name = "deploy", Action = _ => Task.CompletedTask, DependsOnSteps = { "build" } }, 2571new() { Name = "build", Action = _ => Task.CompletedTask, DependsOnSteps = { "init" } }, 2572new() { Name = "init", Action = _ => Task.CompletedTask } 2590new() { Name = "c-step", Action = _ => Task.CompletedTask }, 2591new() { Name = "a-step", Action = _ => Task.CompletedTask }, 2592new() { Name = "b-step", Action = _ => Task.CompletedTask } 2651var step = new PipelineStep
Pipelines\PipelineOutputDiffingTests.cs (5)
258builder.WithOutputDiffing(() => new PipelineStep 334.WithPipelineStepFactory(_ => new PipelineStep 792builder.WithOutputDiffing<RecordingSnapshot, RecordingSnapshotter, RecordingComparer>(() => new PipelineStep 798builder.WithOutputDiffing<RecordingSnapshot, RecordingSnapshotter, RecordingComparer>(() => new PipelineStep 1018builder.WithOutputDiffing<string, DirectorySnapshotter, DirectoryComparer>(() => new PipelineStep
Publishing\PipelineExecutorTests.cs (1)
62builder.Pipeline.AddStep(new PipelineStep
Aspire.Hosting.TestUtilities (1)
Helpers\JsonDocumentManifestPublisher.cs (1)
69var step = new PipelineStep
Publishers.AppHost (1)
DistributedApplicationBuilderExtensions.cs (1)
22var step = new PipelineStep
443 references to PipelineStep
Aspire.Hosting (146)
ApplicationModel\DotnetProgramPublishing.cs (3)
38var steps = new List<PipelineStep>(); 47var buildStep = new PipelineStep 61var pushStep = new PipelineStep
Backchannel\AppHostRpcTarget.cs (1)
319if (stepsByName.TryGetValue(request.Step, out var targetStep))
ContainerResourceBuilderExtensions.cs (3)
53var steps = new List<PipelineStep>(); 62var buildStep = new PipelineStep 82var pushStep = new PipelineStep
PipelineOutputDiffingExtensions.cs (8)
31/// <inheritdoc cref="WithOutputDiffing(IDistributedApplicationBuilder, Func{PipelineStep})" path="/remarks" /> 94Func<PipelineStep> createStep) 112/// <inheritdoc cref="WithOutputDiffing{TSnapshot, TSnapshotter, TComparer}(IDistributedApplicationBuilder, Func{PipelineStep})" path="/remarks" /> 153/// <inheritdoc cref="WithOutputDiffing(IDistributedApplicationBuilder, Func{PipelineStep})" path="/remarks" /> 163Func<PipelineStep> createStep) 170var step = createStep(); 228var baseline = context.Steps.Single(candidate => candidate.Name == baselineName); 229foreach (var candidate in context.Steps)
Pipelines\DistributedApplicationPipeline.cs (78)
27private readonly List<PipelineStep> _steps = []; 31private List<PipelineStep>? _lastResolvedSteps; 46var parameterPromptingStep = new PipelineStep 171var pushStep = new PipelineStep 421var step = new PipelineStep 440private static void AddDependencies(PipelineStep step, object dependsOn) 461private static void AddRequiredBy(PipelineStep step, object requiredBy) 482public void AddStep(PipelineStep step) 501/// copies (with fresh <see cref="PipelineStep.DependsOnSteps"/> / 502/// <see cref="PipelineStep.RequiredBySteps"/> and final action lists). 509/// appending entries to <see cref="PipelineStep.DependsOnSteps"/> on built-in 516foreach (var step in _steps) 563if (!allStepsByName.TryGetValue(stepName, out var targetStep)) 589internal async Task<List<PipelineStep>> ResolveStepsAsync(PipelineContext context, bool validateStepReferences = true) 626List<PipelineStep> steps, 627Dictionary<string, PipelineStep> stepsByName, 630foreach (var step in steps) 634if (!stepsByName.TryGetValue(requiredByStep, out var requiredByStepObj)) 655private static (List<PipelineStep> StepsToExecute, Dictionary<string, PipelineStep> StepsByName) FilterStepsForExecution( 656List<PipelineStep> allSteps, 668if (!allStepsByName.TryGetValue(stepName, out var targetStep)) 684internal static List<PipelineStep> ComputeTransitiveDependencies( 685PipelineStep step, 686Dictionary<string, PipelineStep> stepsByName) 689var result = new List<PipelineStep>(); 698if (!stepsByName.TryGetValue(stepName, out var currentStep)) 717private static async Task<List<PipelineStep>> CollectStepsFromAnnotationsAsync(PipelineContext context) 719var steps = new List<PipelineStep>(); 735foreach (var step in annotationSteps) 748List<PipelineStep> allSteps) 783private static Dictionary<string, PipelineStep> ValidateUniqueStepNames(IEnumerable<PipelineStep> steps) 785var stepsByName = new Dictionary<string, PipelineStep>(StringComparer.Ordinal); 787foreach (var step in steps) 800IEnumerable<PipelineStep> steps, 801Dictionary<string, PipelineStep> stepsByName) 803foreach (var step in steps) 830List<PipelineStep> steps, 831Dictionary<string, PipelineStep> stepsByName, 840foreach (var step in steps) 846async Task ExecuteStepWithDependencies(PipelineStep step) 927var step = steps[i]; 974List<PipelineStep> steps, 989foreach (var step in orderedSteps) 1057List<PipelineStep> steps, 1058Dictionary<string, PipelineStep> stepsByName) 1064foreach (var step in steps) 1092if (stepsByName.TryGetValue(stepName, out var step)) 1106foreach (var step in steps) 1115private static async Task ExecuteStepAsync(PipelineStep step, PipelineStepContext stepContext) 1145List<PipelineStep> allSteps, 1178var step = executionOrder[i]; 1190foreach (var step in allSteps.OrderBy(s => s.Name, StringComparer.Ordinal)) 1246foreach (var step in allSteps) 1268foreach (var step in orphanedSteps) 1288foreach (var targetStep in allSteps.OrderBy(s => s.Name, StringComparer.Ordinal)) 1347PipelineStep step, 1348Dictionary<string, PipelineStep> stepsByName, 1362if (stepsByName.TryGetValue(depName, out var depStep)) 1378List<PipelineStep> steps, 1379Dictionary<string, PipelineStep> stepsByName) 1384foreach (var step in steps) 1401private static int GetExecutionLevel(PipelineStep step, Dictionary<string, PipelineStep> stepsByName) 1411List<PipelineStep> steps, 1412Dictionary<string, PipelineStep> stepsByName) 1416foreach (var step in steps) 1425PipelineStep step, 1426Dictionary<string, PipelineStep> stepsByName, 1444if (stepsByName.TryGetValue(depName, out var depStep)) 1460internal static List<PipelineStep> GetTopologicalOrder(List<PipelineStep> steps) 1464var result = new List<PipelineStep>(); 1466void Visit(PipelineStep step) 1477if (stepsByName.TryGetValue(depName, out var depStep)) 1488foreach (var step in sortedSteps) 1509foreach (var step in _steps)
Pipelines\DistributedApplicationPipelineExtensions.cs (2)
43var step = context.Steps.FirstOrDefault(candidate => candidate.Name == stepName); 75var validationStep = context.Steps.FirstOrDefault(step => step.Name == DistributedApplicationPipeline.ValidateBuildOnlyContainerReferencesStepName);
Pipelines\IDistributedApplicationPipeline.cs (1)
27void AddStep(PipelineStep step);
Pipelines\PipelineConfigurationContext.cs (5)
24public required IReadOnlyList<PipelineStep> Steps 47internal ILookup<IResource?, PipelineStep>? StepToResourceMap { get; init; } 67public IEnumerable<PipelineStep> GetSteps(string tag) 80public IEnumerable<PipelineStep> GetSteps(IResource resource) 95public IEnumerable<PipelineStep> GetSteps(IResource resource, string tag)
Pipelines\PipelineContext.cs (1)
87public IReadOnlyList<PipelineStep> SelectedSteps { get; internal set; } = [];
Pipelines\PipelineEditor.cs (4)
10internal sealed class PipelineEditor(IReadOnlyList<PipelineStep> steps) 12private readonly IReadOnlyList<PipelineStep> _steps = steps ?? throw new ArgumentNullException(nameof(steps)); 19public IReadOnlyList<PipelineStep> Steps() => _steps; 27public IReadOnlyList<PipelineStep> StepsByTag(string tag)
Pipelines\PipelineStep.cs (4)
75public void DependsOn(PipelineStep step) 107public void RequiredBy(PipelineStep step) 118internal PipelineStep Clone() 120var clone = new PipelineStep
Pipelines\PipelineStepAnnotation.cs (7)
13private readonly Func<PipelineStepFactoryContext, Task<IEnumerable<PipelineStep>>> _factory; 19public PipelineStepAnnotation(Func<PipelineStepFactoryContext, PipelineStep> factory) 21_factory = (context) => Task.FromResult<IEnumerable<PipelineStep>>([factory(context)]); 28public PipelineStepAnnotation(Func<PipelineStepFactoryContext, Task<PipelineStep>> factory) 37public PipelineStepAnnotation(Func<PipelineStepFactoryContext, IEnumerable<PipelineStep>> factory) 46public PipelineStepAnnotation(Func<PipelineStepFactoryContext, Task<IEnumerable<PipelineStep>>> factory) 56public Task<IEnumerable<PipelineStep>> CreateStepsAsync(PipelineStepFactoryContext context) => _factory(context);
Pipelines\PipelineStepExtensions.cs (24)
18public static IEnumerable<PipelineStep> DependsOn(this IEnumerable<PipelineStep> steps, PipelineStep? step) 25foreach (var s in steps) 40public static IEnumerable<PipelineStep> DependsOn(this IEnumerable<PipelineStep> steps, string stepName) 47foreach (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) 82public static IEnumerable<PipelineStep> RequiredBy(this IEnumerable<PipelineStep> steps, PipelineStep? step) 89foreach (var s in steps) 104public static IEnumerable<PipelineStep> RequiredBy(this IEnumerable<PipelineStep> steps, string stepName) 111foreach (var s in steps) 126public static IEnumerable<PipelineStep> RequiredBy(this IEnumerable<PipelineStep> steps, IEnumerable<PipelineStep> targetSteps) 128foreach (var step in targetSteps) 130foreach (var s in steps)
Pipelines\PipelineStepFactoryExtensions.cs (4)
24Func<PipelineStepFactoryContext, PipelineStep> factory) where T : IResource 43Func<PipelineStepFactoryContext, Task<PipelineStep>> factory) where T : IResource 62Func<PipelineStepFactoryContext, IEnumerable<PipelineStep>> factory) where T : IResource 81Func<PipelineStepFactoryContext, Task<IEnumerable<PipelineStep>>> factory) where T : IResource
Publishing\ManifestPublishingExtensions.cs (1)
25var step = new PipelineStep
Aspire.Hosting.Azure (7)
AzureBicepResource.cs (1)
44var provisionStep = new PipelineStep
AzureEnvironmentResource.cs (6)
75var steps = new List<PipelineStep>(); 77var prepareResourcesStep = new PipelineStep 93var publishStep = new PipelineStep 114var createContextStep = new PipelineStep 133var provisionStep = new PipelineStep 145var destroyStep = new PipelineStep
Aspire.Hosting.Azure.AppContainers (9)
AzureContainerAppEnvironmentResource.cs (4)
60var steps = new List<PipelineStep>(); 65var prepareStep = new PipelineStep 85var printDashboardUrlStep = new PipelineStep 118foreach (var step in deploymentTargetSteps)
AzureContainerAppExtensions.cs (2)
109var validationStep = context.Steps.Single(step => step.Name == ValidateContainerAppsStepName); 122var prepareStep = context.GetSteps(environment)
AzureContainerAppResource.cs (3)
41var steps = new List<PipelineStep>(); 43var printResourceSummary = new PipelineStep 74var deployStep = new PipelineStep
Aspire.Hosting.Azure.AppService (8)
AzureAppServiceEnvironmentResource.cs (5)
93var steps = new List<PipelineStep>(); 98var prepareStep = new PipelineStep 111var validateStep = new PipelineStep 127var printDashboardUrlStep = new PipelineStep 160foreach (var step in deploymentTargetSteps)
AzureAppServiceWebSiteResource.cs (3)
41var steps = new List<PipelineStep>(); 43var printResourceSummary = new PipelineStep 72var deployStep = new PipelineStep
Aspire.Hosting.Azure.EntraId.Tests (1)
EntraIdApiProvisioningTests.cs (1)
933var step = Assert.Single(await annotation.CreateStepsAsync(new PipelineStepFactoryContext { PipelineContext = null!, Resource = resource }));
Aspire.Hosting.Azure.Kubernetes (12)
AzureKubernetesEnvironmentExtensions.cs (2)
212foreach (var pushStep in pushSteps) 1079var steps = new List<PipelineStep>();
AzureKubernetesEnvironmentResource.cs (8)
55var prepareStep = new PipelineStep 71var getCredentialsStep = new PipelineStep 82var getDestroyCredentialsStep = new PipelineStep 92return Task.FromResult<IEnumerable<PipelineStep>>([prepareStep, getCredentialsStep, getDestroyCredentialsStep]); 98var getDestroyCredentialsStep = context.GetSteps(this) 112var destroyAzureStep = context.GetSteps(azureEnvironment) 136foreach (var kubernetesDestroyStep in kubernetesDestroySteps) 151foreach (var kubernetesDestroyStep in kubernetesDestroySteps)
AzureKubernetesLoadBalancerResource.cs (2)
83var step = new PipelineStep 94return Task.FromResult<IEnumerable<PipelineStep>>([step]);
Aspire.Hosting.Azure.Kubernetes.Tests (10)
AzureKubernetesInfrastructureTests.cs (10)
553var destroyAzureStep = context.GetSteps(azureEnvironment) 636var destroyAzureStep = context.GetSteps(azureEnvironment) 1455var steps = new List<PipelineStep>(); 1465var getCredentialsStep = Assert.Single(steps, step => step.Name == "aks-get-credentials-aks"); 1548var steps = new List<PipelineStep>(); 1558var getCredentialsStep = Assert.Single(steps, step => step.Name == "aks-get-credentials-aks"); 1778var steps = new List<PipelineStep>(); 1788var getCredentialsStep = Assert.Single(steps, step => step.Name == "aks-get-credentials-aks"); 1851var steps = new List<PipelineStep>(); 1861var getCredentialsStep = Assert.Single(steps, step => step.Name == "aks-get-credentials-aks");
Aspire.Hosting.Azure.Sandboxes (15)
AzureSandboxCleanupResource.cs (1)
38private IEnumerable<PipelineStep> CreateSteps(PipelineStepFactoryContext context)
AzureSandboxContainerDeployment.cs (12)
57public static IEnumerable<PipelineStep> CreatePipelineSteps(AzureSandboxContainerResource resource) 86internal static PipelineStep CreateStaleCleanupPipelineStep(IResource resource, IReadOnlySet<string> activeStateSectionNames) 126foreach (var step in GetAzureEnvironmentDestroySteps(context)) 136foreach (var step in GetAzureEnvironmentDestroySteps(context)) 172foreach (var consumerStep in deploySteps) 174foreach (var producerStep in producerSteps) 188private static IEnumerable<PipelineStep> GetAzureEnvironmentDestroySteps(PipelineConfigurationContext context) 193foreach (var step in context.GetSteps(environment).Where(step => string.Equals(step.Name, expectedName, StringComparison.Ordinal))) 201IReadOnlyList<PipelineStep> steps, 202PipelineStep consumer, 203PipelineStep producer) 225if (stepLookup.TryGetValue(stepName, out var step))
AzureSandboxGroupResource.cs (2)
42var steps = new List<PipelineStep> 81foreach (var step in deploymentTargetSteps)
Aspire.Hosting.Azure.Tests (34)
AzureApiManagementTests.cs (1)
1109var provisionStep = new PipelineStep
AzureAppServiceTests.cs (2)
1470private static async Task<List<PipelineStep>> CreateStepsAsync(DistributedApplication app, AzureAppServiceEnvironmentResource resource) 1479var results = new List<PipelineStep>();
AzureBicepResourceTests.cs (1)
233var step = steps.First();
AzureContainerAppExpressEndpointTests.cs (2)
403var steps = new List<PipelineStep>(); 414var summaryStep = Assert.Single(steps, step => step.Tags.Contains("print-summary"));
AzureContainerAppsTests.cs (2)
3329private static async Task<List<PipelineStep>> CreateStepsAsync(DistributedApplication app, AzureContainerAppEnvironmentResource resource) 3338var results = new List<PipelineStep>();
AzureContainerRegistryTests.cs (6)
152var allSteps = new List<PipelineStep>(); 158var loginStep = allSteps.FirstOrDefault(s => s.Name == "login-to-acr-acr"); 181var allSteps = new List<PipelineStep>(); 187var loginStep = allSteps.FirstOrDefault(s => s.Name == "login-to-acr-acr"); 210var allSteps = new List<PipelineStep>(); 216var provisionStep = allSteps.FirstOrDefault(s => s.Name == "provision-acr");
AzureEnvironmentResourceExtensionsTests.cs (2)
865var prepareResourcesStep = Assert.Single(steps, step => step.Name == AzureEnvironmentResource.PrepareResourcesStepName); 5535private static async Task<(IReadOnlyList<PipelineStep> Steps, PipelineContext PipelineContext)> CreateAzureEnvironmentPipelineStepsAsync(
AzureSandboxesTests.cs (16)
85var firstSummaryStep = Assert.Single(firstSteps, step => step.Name == "print-azure-sandboxes-dashboard-first"); 91var secondSummaryStep = Assert.Single(secondSteps, step => step.Name == "print-azure-sandboxes-dashboard-second"); 139var summaryStep = Assert.Single(steps, step => step.Name == "print-azure-sandboxes-dashboard-sandboxes"); 2465var deployStep = Assert.Single(steps, step => step.Name == "deploy-frontend-sandbox-container"); 2471var pushStep = new PipelineStep 2479var registryLoginStep = new PipelineStep 2501var destroyStep = Assert.Single(steps, step => step.Name == "destroy-frontend-sandbox-container"); 2507var staleCleanupStep = Assert.Single(cleanupSteps, step => step.Name == "destroy-stale-azure-sandboxes"); 2512var azureDestroyStep = new PipelineStep 2518var azureNamedSandboxDestroyStep = new PipelineStep 2939var loginStep = new PipelineStep 2956var deployStep = Assert.Single(steps, step => step.Name == "deploy-frontend-sandbox-container"); 3123var apiDeploy = Assert.Single(steps, step => step.Name == "deploy-api-sandbox-container"); 3124var webDeploy = Assert.Single(steps, step => step.Name == "deploy-web-sandbox-container"); 3369private static async Task<List<PipelineStep>> CreateStepsAsync( 3381var results = new List<PipelineStep>();
JavaScriptPublishValidationTests.cs (1)
39IReadOnlyList<PipelineStep> graph = [];
OutputDiffingOrderingTests.cs (1)
27IReadOnlyList<PipelineStep> graph = [];
Aspire.Hosting.Containers.Tests (6)
WithDockerfileTests.cs (6)
808var buildStep = steps.Single(s => s.Tags.Contains(WellKnownPipelineTags.BuildCompute)); 813var pushStep = steps.Single(s => s.Tags.Contains(WellKnownPipelineTags.PushContainerImage)); 975var buildStep = steps.Single(s => s.Tags.Contains(WellKnownPipelineTags.BuildCompute)); 980var pushStep = steps.Single(s => s.Tags.Contains(WellKnownPipelineTags.PushContainerImage)); 1020var buildStep = steps.Single(s => s.Tags.Contains(WellKnownPipelineTags.BuildCompute)); 1025var pushStep = steps.Single(s => s.Tags.Contains(WellKnownPipelineTags.PushContainerImage));
Aspire.Hosting.Docker (10)
DockerComposeEnvironmentResource.cs (8)
68var steps = new List<PipelineStep>(); 70var prepareDeploymentTargetsStep = new PipelineStep 80var publishStep = new PipelineStep 110foreach (var step in deploymentTargetSteps) 120var prepareStep = new PipelineStep 131var dockerComposeUpStep = new PipelineStep 141var dockerComposeDestroyStep = new PipelineStep 199var dockerComposeDownStep = new PipelineStep
DockerComposeServiceResource.cs (2)
46var steps = new List<PipelineStep>(); 48var printResourceSummary = new PipelineStep
Aspire.Hosting.Docker.Tests (1)
OutputDiffingOrderingTests.cs (1)
27IReadOnlyList<PipelineStep> graph = [];
Aspire.Hosting.EntityFrameworkCore (2)
EFResourceBuilderExtensions.cs (2)
286internal static IEnumerable<PipelineStep> CreateMigrationPipelineStep(PipelineStepFactoryContext context) 295var steps = new List<PipelineStep>();
Aspire.Hosting.EntityFrameworkCore.Tests (24)
EFMigrationPipelineTests.cs (21)
55var steps = new List<PipelineStep>(); 64var step = Assert.Single(steps); 93var generateStep = Assert.Single(steps); 110var scriptStep = Assert.Single(steps); 128var scriptStep = Assert.Single(steps, s => s.Name == "mymigrations-generate-migration-script"); 129var bundleStep = Assert.Single(steps, s => s.Name == "mymigrations-generate-migration-bundle"); 163var m1Bundle = Assert.Single(m1Steps, s => s.Name == "aaa-migrations-generate-migration-bundle"); 164var m2Bundle = Assert.Single(m2Steps, s => s.Name == "bbb-migrations-generate-migration-bundle"); 189var m1Script = Assert.Single(m1Steps, s => s.Name == "aaa-migrations-generate-migration-script"); 190var m1Bundle = Assert.Single(m1Steps, s => s.Name == "aaa-migrations-generate-migration-bundle"); 191var m2Script = Assert.Single(m2Steps, s => s.Name == "bbb-migrations-generate-migration-script"); 192var m2Bundle = Assert.Single(m2Steps, s => s.Name == "bbb-migrations-generate-migration-bundle"); 219var m1Bundle = Assert.Single(m1Steps); 220var m2Bundle = Assert.Single(m2Steps); 241var m1Script = Assert.Single(m1Steps); 242var m2Bundle = Assert.Single(m2Steps); 267var m1Bundle = Assert.Single(m1Steps); 268var m3Bundle = Assert.Single(m3Steps); 809var generateStep = Assert.Single(steps, s => s.Name == "mymigrations-generate-migration-bundle"); 857private static async Task<List<PipelineStep>> CreateStepsAsync( 869var results = new List<PipelineStep>();
EFOutputDiffingTests.cs (3)
43IReadOnlyList<PipelineStep> graph = []; 54foreach (var generation in generations) 123private static bool Reaches(IReadOnlyList<PipelineStep> steps, string from, string target)
Aspire.Hosting.Foundry (11)
HostedAgent\AzureHostedAgentResource.cs (2)
44List<PipelineStep> steps = []; 50var agentDeployStep = new PipelineStep
Project\ProjectResource.cs (3)
44var steps = new List<PipelineStep>(); 46var removeDefaultContainerRegistryStep = new PipelineStep 68var computeUrls = new PipelineStep
PromptAgent\AzurePromptAgentResource.cs (4)
66var steps = new List<PipelineStep>(); 70var beforeStartDeployStep = new PipelineStep 82var agentDeployStep = new PipelineStep 100return Task.FromResult<IEnumerable<PipelineStep>>(steps);
Toolbox\FoundryToolboxResource.cs (2)
53var steps = new List<PipelineStep>(); 99return Task.FromResult<IEnumerable<PipelineStep>>(steps);
Aspire.Hosting.Foundry.Tests (10)
PromptAgentTests.cs (2)
692var steps = new List<PipelineStep>(); 702var beforeStartStep = steps.SingleOrDefault(s => s.Name == "deploy-my-agent-before-start");
ToolboxTests.cs (8)
286var step = Assert.Single(steps); 317var beforeStart = Assert.Single(steps, s => s.Name == "deploy-field-tools-before-start"); 322var deploy = Assert.Single(steps, s => s.Name == "deploy-field-tools"); 817var toolboxDeploy = Assert.Single(toolboxSteps, s => s.Name == "deploy-field-tools"); 819var containerDeploy = new PipelineStep 859var toolboxDeploy = Assert.Single(toolboxSteps, s => s.Name == "deploy-field-tools"); 898var toolboxDeploy = Assert.Single(toolboxSteps, step => step.Name == "deploy-field-tools"); 899var mcpDeploy = new PipelineStep
Aspire.Hosting.Go (2)
src\Shared\PublishValidationExtensions.cs (2)
11internal static PipelineStep AddPublishValidation( 18var step = new PipelineStep
Aspire.Hosting.JavaScript (3)
JavaScriptHostingExtensions.cs (1)
2253var validationStep = containerBuilder.AddPublishValidation(
src\Shared\PublishValidationExtensions.cs (2)
11internal static PipelineStep AddPublishValidation( 18var step = new PipelineStep
Aspire.Hosting.Kubernetes (31)
CertManagerExtensions.cs (8)
344private static Task<IEnumerable<PipelineStep>> BuildIssuerApplySteps( 348var steps = new List<PipelineStep>(); 356var step = new PipelineStep 372return Task.FromResult<IEnumerable<PipelineStep>>(steps); 375private static Task<IEnumerable<PipelineStep>> BuildIssuerDeleteSteps( 379var steps = new List<PipelineStep>(); 385var step = new PipelineStep 402return Task.FromResult<IEnumerable<PipelineStep>>(steps);
Deployment\HelmDeploymentEngine.cs (9)
116internal static Task<IReadOnlyList<PipelineStep>> CreateStepsAsync( 121var steps = new List<PipelineStep>(); 134var checkPrereqStep = new PipelineStep 147var prepareStep = new PipelineStep 159var helmDeployStep = new PipelineStep 171var instructionsStep = new PipelineStep 183var helmDestroyStep = new PipelineStep 231var helmUninstallStep = new PipelineStep 240return Task.FromResult<IReadOnlyList<PipelineStep>>(steps);
KubernetesEnvironmentResource.cs (8)
223internal Func<KubernetesEnvironmentResource, PipelineStepFactoryContext, Task<IReadOnlyList<PipelineStep>>>? DeploymentEngineStepsFactory { get; set; } 236var steps = new List<PipelineStep>(); 242var prepareStep = new PipelineStep 254var publishStep = new PipelineStep 279var tlsBootstrapStep = new PipelineStep 295var fqdnDiscoveryStep = new PipelineStep 323var cleanupStep = new PipelineStep 356foreach (var step in deploymentTargetSteps)
KubernetesHelmChartExtensions.cs (4)
92var steps = new List<PipelineStep>(); 94var installStep = new PipelineStep 107var uninstallStep = new PipelineStep 119return Task.FromResult<IEnumerable<PipelineStep>>(steps);
KubernetesResource.cs (2)
34var printResourceSummary = new PipelineStep 43return new List<PipelineStep> { printResourceSummary };
Aspire.Hosting.Kubernetes.Tests (15)
CertManagerTests.cs (2)
242var apply = Assert.Single(steps, step => step.Name == "cm-issuer-apply-eab"); 244var delete = Assert.Single(steps, step => step.Name == "cm-issuer-delete-eab");
KubernetesGatewayTests.cs (1)
627var prepareStep = Assert.Single(steps, step => step.Name == "prepare-deployment-targets-env");
KubernetesHelmChartTests.cs (7)
413var installStep = Assert.Single(steps, s => s.Name == "helm-install-test"); 414var uninstallStep = Assert.Single(steps, s => s.Name == "helm-uninstall-test"); 437var installStep = Assert.Single(steps, s => s.Name == "helm-install-test"); 456var uninstallStep = Assert.Single(steps, s => s.Name == "helm-uninstall-my-release"); 471var uninstallStep = Assert.Single(steps, s => s.Name == "helm-uninstall-my-release"); 506private static async Task<List<PipelineStep>> CreateStepsAsync( 518var results = new List<PipelineStep>();
OutputDiffingOrderingTests.cs (1)
27IReadOnlyList<PipelineStep> graph = [];
PipelineStepTestHelpers.cs (4)
21public static async Task<List<PipelineStep>> CreateStepsAsync(IServiceProvider services, IResource resource) 25var results = new List<PipelineStep>(); 42public static async Task RunStepAsync(IServiceProvider services, PipelineStep step) 66public static List<string> GatewayOrTlsStepNames(IEnumerable<PipelineStep> steps) =>
Aspire.Hosting.Python (2)
src\Shared\PublishValidationExtensions.cs (2)
11internal static PipelineStep AddPublishValidation( 18var step = new PipelineStep
Aspire.Hosting.Radius (18)
Publishing\RadCredentialRegisterStep.cs (3)
44/// Creates a <see cref="PipelineStep"/> that runs <c>rad credential register</c> 48internal PipelineStep CreatePipelineStep() 50var step = new PipelineStep
Publishing\RadiusBicepPublishingContext.cs (3)
33/// Creates a <see cref="PipelineStep"/> that generates Radius Bicep during publish. 35internal PipelineStep CreatePipelineStep() 37var step = new PipelineStep
Publishing\RadiusDeploymentPipelineStep.cs (3)
488/// Creates a <see cref="PipelineStep"/> that deploys a Radius application via <c>rad deploy</c>. 491internal PipelineStep CreatePipelineStep() 493var step = new PipelineStep
Publishing\SealedSecretApplyStep.cs (2)
39internal PipelineStep CreatePipelineStep() 41var step = new PipelineStep
RadiusEnvironmentResource.cs (7)
46var prepareStep = new PipelineStep 55var publishStep = new RadiusBicepPublishingContext(this).CreatePipelineStep(); 56var deployStep = new RadiusDeploymentPipelineStep(this).CreatePipelineStep(); 62var validateSecretStoresStep = new PipelineStep 73var applySealedSecretsStep = new SealedSecretApplyStep(this).CreatePipelineStep(); 81var verifyControlPlaneStep = new PipelineStep 98var registerStep = new RadCredentialRegisterStep(this).CreatePipelineStep();
Aspire.Hosting.Radius.Tests (15)
Deployment\ControlPlaneVersionGateTests.cs (3)
185var gate = Assert.Single(steps, step => step.Name == "verify-radius-control-plane-myenv"); 203var gate = Assert.Single(steps, step => step.Name == "verify-radius-control-plane-myenv"); 359private static async Task<List<PipelineStep>> CreateEnvironmentStepsAsync(string environmentName, bool withCloudProvider)
Deployment\DeployPipelineIntegrationTests.cs (6)
43var pipelineStep = step.CreatePipelineStep(); 63var pipelineStep = step.CreatePipelineStep(); 80var pipelineStep = step.CreatePipelineStep(); 94var pipelineStep = step.CreatePipelineStep(); 108var pipelineStep = step.CreatePipelineStep(); 138var step = deployStep.CreatePipelineStep();
Deployment\RadCliDetectionTests.cs (3)
66var pipelineStep = step.CreatePipelineStep(); 77var pipelineStep = step.CreatePipelineStep(); 91var pipelineStep = step.CreatePipelineStep();
DeploymentE2E\DeployEndToEndTests.cs (1)
115var pipelineStep = step.CreatePipelineStep();
OutputDiffingOrderingTests.cs (1)
27IReadOnlyList<PipelineStep> graph = [];
Secrets\SecretStoreValidationTests.cs (1)
130var gate = Assert.Single(steps);
Aspire.Hosting.Rust.Tests (5)
AddRustAppPublishTests.cs (5)
277var pipelineSteps = new PipelineStepAnnotation(_ => Array.Empty<PipelineStep>()); 316var rustBuildStep = CreateBuildComputeStep("build-api", rust.Resource); 317var frontendBuildStep = CreateBuildComputeStep("build-frontend", frontend.Resource); 318var assetsBuildStep = CreateBuildComputeStep("build-assets", assets.Resource); 338private static PipelineStep CreateBuildComputeStep(string name, IResource resource)
Aspire.Hosting.Tests (44)
BuildOnlyContainerValidationTests.cs (1)
74PipelineStep? validationStep = null;
ContainerRegistryResourceTests.cs (4)
376var pushStep = steps.FirstOrDefault(s => s.Name == "push-mycontainer"); 480var pushStep = steps.FirstOrDefault(s => s.Name == "push-api"); 504var buildStep = steps.FirstOrDefault(s => s.Name == "build-api"); 505var pushStep = steps.FirstOrDefault(s => s.Name == "push-api");
Pipelines\CorePipelineApiTests.cs (1)
15[InlineData(typeof(PipelineStep))]
Pipelines\DistributedApplicationPipelineTests.cs (33)
424var step1 = new PipelineStep 431var step2 = new PipelineStep 767var stepA = new PipelineStep 774var stepB = new PipelineStep 781var stepC = new PipelineStep 1462var step = new PipelineStep 1481var capturedSteps = new List<PipelineStep>(); 1539var step1 = configContext.Steps.First(s => s.Name == "step1"); 1540var step2 = configContext.Steps.First(s => s.Name == "step2"); 1557var foundSteps = new List<PipelineStep>(); 1600var foundSteps = new List<PipelineStep>(); 1650var foundSteps = new List<PipelineStep>(); 1842foreach (var buildStep in buildSteps) 1844foreach (var provisionStep in provisionSteps) 1850foreach (var deployStep in deploySteps) 1852foreach (var buildStep in buildSteps) 2079PipelineStep? parameterPromptingStep = null; 2080PipelineStep? deployPrereqStep = null; 2081PipelineStep? buildPrereqStep = null; 2082PipelineStep? publishPrereqStep = null; 2451var firstBeforeStart = first.Single(step => step.Name == WellKnownPipelineSteps.BeforeStart); 2452var secondBeforeStart = second.Single(step => step.Name == WellKnownPipelineSteps.BeforeStart); 2509var step = new PipelineStep 2521var deployStep = steps.Single(s => s.Name == "deploy"); 2541var taggedStep = steps.Single(s => s.Name == "tagged-step"); 2568var steps = new List<PipelineStep> 2588var steps = new List<PipelineStep> 2607.GetValue(original) as List<PipelineStep>; 2609var originalBeforeStart = originalDeploy.Single(step => step.Name == WellKnownPipelineSteps.BeforeStart); 2615.GetValue(clone) as List<PipelineStep>; 2631var cloneBeforeStart = cloneDeploy.Single(step => step.Name == WellKnownPipelineSteps.BeforeStart); 2651var step = new PipelineStep 2682var deployStep = resolved.Single(s => s.Name == WellKnownPipelineSteps.Deploy);
Pipelines\PipelineOutputDiffingTests.cs (2)
281var check = Assert.Single(steps, step => step.Name == "custom-check"); 346var writer = Assert.Single(context.Steps, step => step.Name == "late-writer");
ProjectResourceTests.cs (2)
894var buildStep = steps.First(s => s.Name == "build-test-project"); 899var pushStep = steps.First(s => s.Name == "push-test-project");
Publishing\PipelineExecutorTests.cs (1)
83var dependency = context.Steps.Single(step => step.Name == "late-dependency");
Aspire.Hosting.TestUtilities (1)
Helpers\JsonDocumentManifestPublisher.cs (1)
69var step = new PipelineStep
Publishers.AppHost (1)
DistributedApplicationBuilderExtensions.cs (1)
22var step = new PipelineStep