148 instantiations of PipelineStep
Aspire.Hosting (24)
ApplicationModel\DotnetProgramPublishing.cs (2)
47var buildStep = new PipelineStep 61var pushStep = new PipelineStep
ContainerResourceBuilderExtensions.cs (2)
62var buildStep = new PipelineStep 82var pushStep = 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 (7)
AzureBicepResource.cs (1)
44var provisionStep = new PipelineStep
AzureEnvironmentResource.cs (6)
76var prepareResourcesStep = new PipelineStep 89var publishStep = new PipelineStep 99var validateStep = new PipelineStep 109var createContextStep = new PipelineStep 128var provisionStep = new PipelineStep 140var destroyStep = new PipelineStep
Aspire.Hosting.Azure.AppContainers (5)
AzureContainerAppEnvironmentResource.cs (2)
47var prepareStep = new PipelineStep 67var printDashboardUrlStep = new PipelineStep
AzureContainerAppResource.cs (2)
40var printResourceSummary = new PipelineStep 71var deployStep = new PipelineStep
src\Shared\CrossScopeAcrPullIdentityPreparer.cs (1)
52new PipelineStep
Aspire.Hosting.Azure.AppService (6)
AzureAppServiceEnvironmentResource.cs (3)
56var prepareStep = new PipelineStep 69var validateStep = new PipelineStep 85var printDashboardUrlStep = new PipelineStep
AzureAppServiceWebSiteResource.cs (2)
40var printResourceSummary = new PipelineStep 69var deployStep = new PipelineStep
src\Shared\CrossScopeAcrPullIdentityPreparer.cs (1)
52new PipelineStep
Aspire.Hosting.Azure.ContainerRegistry (1)
AzureContainerRegistryResource.cs (1)
29var loginStep = new PipelineStep
Aspire.Hosting.Azure.Kubernetes (4)
AzureKubernetesEnvironmentResource.cs (3)
48var prepareStep = new PipelineStep 64var getCredentialsStep = new PipelineStep 75var 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 (5)
AzureSandboxesTests.cs (5)
2422var pushStep = new PipelineStep 2430var registryLoginStep = new PipelineStep 2463var azureDestroyStep = new PipelineStep 2469var azureNamedSandboxDestroyStep = new PipelineStep 2890var loginStep = new PipelineStep
Aspire.Hosting.Docker (7)
DockerComposeEnvironmentResource.cs (6)
65var prepareDeploymentTargetsStep = new PipelineStep 75var publishStep = new PipelineStep 115var prepareStep = new PipelineStep 126var dockerComposeUpStep = new PipelineStep 136var dockerComposeDestroyStep = new PipelineStep 194var dockerComposeDownStep = new PipelineStep
DockerComposeServiceResource.cs (1)
44var printResourceSummary = new PipelineStep
Aspire.Hosting.EntityFrameworkCore (2)
EFResourceBuilderExtensions.cs (2)
332steps.Add(new PipelineStep 376steps.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.JavaScript (2)
JavaScriptHostingExtensions.cs (2)
1914containerBuilder.WithAnnotation(new PipelineStepAnnotation(_ => new PipelineStep 2261new PipelineStep
Aspire.Hosting.Kubernetes (16)
CertManagerExtensions.cs (2)
365var step = new PipelineStep 394var 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)
239var prepareStep = new PipelineStep 251var publishStep = new PipelineStep 276var tlsBootstrapStep = new PipelineStep 292var fqdnDiscoveryStep = new PipelineStep 320var cleanupStep = new PipelineStep
KubernetesHelmChartExtensions.cs (2)
94var installStep = new PipelineStep 107var uninstallStep = new PipelineStep
KubernetesResource.cs (1)
34var printResourceSummary = 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 (43)
Pipelines\DistributedApplicationPipelineTests.cs (42)
253.WithPipelineStepFactory((factoryContext) => new PipelineStep 287new PipelineStep 296new PipelineStep 365var step1 = new PipelineStep 372var step2 = new PipelineStep 618.WithPipelineStepFactory((factoryContext) => new PipelineStep 625.WithPipelineStepFactory((factoryContext) => new PipelineStep 708var stepA = new PipelineStep 715var stepB = new PipelineStep 722var stepC = new PipelineStep 1004return new PipelineStep 1033.WithPipelineStepFactory((factoryContext) => new PipelineStep 1060return new PipelineStep 1087new PipelineStep 1096new PipelineStep 1127new PipelineStep 1136new PipelineStep 1403var step = new PipelineStep 1500pipeline.AddStep(new PipelineStep 1507pipeline.AddStep(new PipelineStep 1514pipeline.AddStep(new PipelineStep 1547new PipelineStep 1552new PipelineStep 1563return new PipelineStep 1596new PipelineStep 1602new PipelineStep 1696.WithPipelineStepFactory((factoryContext) => new PipelineStep 1733pipeline.AddStep(new PipelineStep 1744pipeline.AddStep(new PipelineStep 1755pipeline.AddStep(new PipelineStep 1766pipeline.AddStep(new PipelineStep 2347.WithPipelineStepFactory(_ => new PipelineStep 2353.WithPipelineStepFactory(_ => new PipelineStep 2373var step = new PipelineStep 2395pipeline.AddStep(new PipelineStep 2434new() { Name = "deploy", Action = _ => Task.CompletedTask, DependsOnSteps = { "build" } }, 2435new() { Name = "build", Action = _ => Task.CompletedTask, DependsOnSteps = { "init" } }, 2436new() { Name = "init", Action = _ => Task.CompletedTask } 2454new() { Name = "c-step", Action = _ => Task.CompletedTask }, 2455new() { Name = "a-step", Action = _ => Task.CompletedTask }, 2456new() { Name = "b-step", Action = _ => Task.CompletedTask } 2515var step = 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
411 references to PipelineStep
Aspire.Hosting (133)
ApplicationModel\DotnetProgramPublishing.cs (3)
38var steps = new List<PipelineStep>(); 47var buildStep = new PipelineStep 61var pushStep = new PipelineStep
Backchannel\AppHostRpcTarget.cs (1)
310if (stepsByName.TryGetValue(request.Step, out var targetStep))
ContainerResourceBuilderExtensions.cs (3)
53var steps = new List<PipelineStep>(); 62var buildStep = new PipelineStep 82var pushStep = new PipelineStep
Pipelines\DistributedApplicationPipeline.cs (74)
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) 559if (!allStepsByName.TryGetValue(stepName, out var targetStep)) 577internal async Task<List<PipelineStep>> ResolveStepsAsync(PipelineContext context) 610List<PipelineStep> steps, 611Dictionary<string, PipelineStep> stepsByName) 613foreach (var step in steps) 617if (!stepsByName.TryGetValue(requiredByStep, out var requiredByStepObj)) 633private static (List<PipelineStep> StepsToExecute, Dictionary<string, PipelineStep> StepsByName) FilterStepsForExecution( 634List<PipelineStep> allSteps, 646if (!allStepsByName.TryGetValue(stepName, out var targetStep)) 662internal static List<PipelineStep> ComputeTransitiveDependencies( 663PipelineStep step, 664Dictionary<string, PipelineStep> stepsByName) 667var result = new List<PipelineStep>(); 676if (!stepsByName.TryGetValue(stepName, out var currentStep)) 695private static async Task<List<PipelineStep>> CollectStepsFromAnnotationsAsync(PipelineContext context) 697var steps = new List<PipelineStep>(); 713foreach (var step in annotationSteps) 726List<PipelineStep> allSteps) 761private static void ValidateSteps(IEnumerable<PipelineStep> steps) 765foreach (var step in steps) 774foreach (var step in steps) 801List<PipelineStep> steps, 802Dictionary<string, PipelineStep> stepsByName, 811foreach (var step in steps) 817async Task ExecuteStepWithDependencies(PipelineStep step) 898var step = steps[i]; 945List<PipelineStep> steps, 960foreach (var step in orderedSteps) 1028List<PipelineStep> steps, 1029Dictionary<string, PipelineStep> stepsByName) 1035foreach (var step in steps) 1063if (stepsByName.TryGetValue(stepName, out var step)) 1077foreach (var step in steps) 1086private static async Task ExecuteStepAsync(PipelineStep step, PipelineStepContext stepContext) 1116List<PipelineStep> allSteps, 1149var step = executionOrder[i]; 1161foreach (var step in allSteps.OrderBy(s => s.Name, StringComparer.Ordinal)) 1217foreach (var step in allSteps) 1239foreach (var step in orphanedSteps) 1259foreach (var targetStep in allSteps.OrderBy(s => s.Name, StringComparer.Ordinal)) 1318PipelineStep step, 1319Dictionary<string, PipelineStep> stepsByName, 1333if (stepsByName.TryGetValue(depName, out var depStep)) 1349List<PipelineStep> steps, 1350Dictionary<string, PipelineStep> stepsByName) 1355foreach (var step in steps) 1372private static int GetExecutionLevel(PipelineStep step, Dictionary<string, PipelineStep> stepsByName) 1382List<PipelineStep> steps, 1383Dictionary<string, PipelineStep> stepsByName) 1387foreach (var step in steps) 1396PipelineStep step, 1397Dictionary<string, PipelineStep> stepsByName, 1415if (stepsByName.TryGetValue(depName, out var depStep)) 1431internal static List<PipelineStep> GetTopologicalOrder(List<PipelineStep> steps) 1435var result = new List<PipelineStep>(); 1437void Visit(PipelineStep step) 1448if (stepsByName.TryGetValue(depName, out var depStep)) 1459foreach (var step in sortedSteps) 1480foreach (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\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 (8)
AzureBicepResource.cs (1)
44var provisionStep = new PipelineStep
AzureEnvironmentResource.cs (7)
74var steps = new List<PipelineStep>(); 76var prepareResourcesStep = new PipelineStep 89var publishStep = new PipelineStep 99var validateStep = new PipelineStep 109var createContextStep = new PipelineStep 128var provisionStep = new PipelineStep 140var destroyStep = new PipelineStep
Aspire.Hosting.Azure.AppContainers (9)
AzureContainerAppEnvironmentResource.cs (4)
42var steps = new List<PipelineStep>(); 47var prepareStep = new PipelineStep 67var printDashboardUrlStep = new PipelineStep 100foreach (var step in deploymentTargetSteps)
AzureContainerAppExtensions.cs (2)
109var validationStep = context.Steps.Single(step => step.Name == ValidateContainerAppsStepName); 122var prepareStep = context.GetSteps(environment)
AzureContainerAppResource.cs (3)
38var steps = new List<PipelineStep>(); 40var printResourceSummary = new PipelineStep 71var deployStep = new PipelineStep
Aspire.Hosting.Azure.AppService (8)
AzureAppServiceEnvironmentResource.cs (5)
51var steps = new List<PipelineStep>(); 56var prepareStep = new PipelineStep 69var validateStep = new PipelineStep 85var printDashboardUrlStep = new PipelineStep 118foreach (var step in deploymentTargetSteps)
AzureAppServiceWebSiteResource.cs (3)
38var steps = new List<PipelineStep>(); 40var printResourceSummary = new PipelineStep 69var deployStep = new PipelineStep
Aspire.Hosting.Azure.ContainerRegistry (1)
AzureContainerRegistryResource.cs (1)
29var loginStep = new PipelineStep
Aspire.Hosting.Azure.Kubernetes (12)
AzureKubernetesEnvironmentExtensions.cs (2)
115foreach (var pushStep in pushSteps) 867var steps = new List<PipelineStep>();
AzureKubernetesEnvironmentResource.cs (8)
48var prepareStep = new PipelineStep 64var getCredentialsStep = new PipelineStep 75var getDestroyCredentialsStep = new PipelineStep 85return Task.FromResult<IEnumerable<PipelineStep>>([prepareStep, getCredentialsStep, getDestroyCredentialsStep]); 91var getDestroyCredentialsStep = context.GetSteps(this) 105var destroyAzureStep = context.GetSteps(azureEnvironment) 129foreach (var kubernetesDestroyStep in kubernetesDestroySteps) 144foreach (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)
470var destroyAzureStep = context.GetSteps(azureEnvironment) 553var destroyAzureStep = context.GetSteps(azureEnvironment) 1373var steps = new List<PipelineStep>(); 1383var getCredentialsStep = Assert.Single(steps, step => step.Name == "aks-get-credentials-aks"); 1467var steps = new List<PipelineStep>(); 1477var getCredentialsStep = Assert.Single(steps, step => step.Name == "aks-get-credentials-aks"); 1680var steps = new List<PipelineStep>(); 1690var getCredentialsStep = Assert.Single(steps, step => step.Name == "aks-get-credentials-aks"); 1750var steps = new List<PipelineStep>(); 1760var 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 (31)
AzureAppServiceTests.cs (2)
1446private static async Task<List<PipelineStep>> CreateStepsAsync(DistributedApplication app, AzureAppServiceEnvironmentResource resource) 1455var results = new List<PipelineStep>();
AzureBicepResourceTests.cs (1)
233var step = steps.First();
AzureContainerAppExpressEndpointTests.cs (2)
371var steps = new List<PipelineStep>(); 382var summaryStep = Assert.Single(steps, step => step.Tags.Contains("print-summary"));
AzureContainerAppsTests.cs (2)
3244private static async Task<List<PipelineStep>> CreateStepsAsync(DistributedApplication app, AzureContainerAppEnvironmentResource resource) 3253var results = new List<PipelineStep>();
AzureContainerRegistryTests.cs (6)
150var allSteps = new List<PipelineStep>(); 156var loginStep = allSteps.FirstOrDefault(s => s.Name == "login-to-acr-acr"); 179var allSteps = new List<PipelineStep>(); 185var loginStep = allSteps.FirstOrDefault(s => s.Name == "login-to-acr-acr"); 208var allSteps = new List<PipelineStep>(); 214var provisionStep = allSteps.FirstOrDefault(s => s.Name == "provision-acr");
AzureEnvironmentResourceExtensionsTests.cs (2)
541var prepareResourcesStep = Assert.Single(steps, step => step.Name == AzureEnvironmentResource.PrepareResourcesStepName); 5189private static async Task<(IReadOnlyList<PipelineStep> Steps, PipelineContext PipelineContext)> CreateAzureEnvironmentPipelineStepsAsync(
AzureSandboxesTests.cs (16)
52var firstSummaryStep = Assert.Single(firstSteps, step => step.Name == "print-azure-sandboxes-dashboard-first"); 58var secondSummaryStep = Assert.Single(secondSteps, step => step.Name == "print-azure-sandboxes-dashboard-second"); 106var summaryStep = Assert.Single(steps, step => step.Name == "print-azure-sandboxes-dashboard-sandboxes"); 2416var deployStep = Assert.Single(steps, step => step.Name == "deploy-frontend-sandbox-container"); 2422var pushStep = new PipelineStep 2430var registryLoginStep = new PipelineStep 2452var destroyStep = Assert.Single(steps, step => step.Name == "destroy-frontend-sandbox-container"); 2458var staleCleanupStep = Assert.Single(cleanupSteps, step => step.Name == "destroy-stale-azure-sandboxes"); 2463var azureDestroyStep = new PipelineStep 2469var azureNamedSandboxDestroyStep = new PipelineStep 2890var loginStep = new PipelineStep 2907var deployStep = Assert.Single(steps, step => step.Name == "deploy-frontend-sandbox-container"); 3074var apiDeploy = Assert.Single(steps, step => step.Name == "deploy-api-sandbox-container"); 3075var webDeploy = Assert.Single(steps, step => step.Name == "deploy-web-sandbox-container"); 3320private static async Task<List<PipelineStep>> CreateStepsAsync( 3332var results = new List<PipelineStep>();
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)
63var steps = new List<PipelineStep>(); 65var prepareDeploymentTargetsStep = new PipelineStep 75var publishStep = new PipelineStep 105foreach (var step in deploymentTargetSteps) 115var prepareStep = new PipelineStep 126var dockerComposeUpStep = new PipelineStep 136var dockerComposeDestroyStep = new PipelineStep 194var dockerComposeDownStep = new PipelineStep
DockerComposeServiceResource.cs (2)
42var steps = new List<PipelineStep>(); 44var printResourceSummary = new PipelineStep
Aspire.Hosting.EntityFrameworkCore (2)
EFResourceBuilderExtensions.cs (2)
291internal static IEnumerable<PipelineStep> CreateMigrationPipelineStep(PipelineStepFactoryContext context) 300var steps = new List<PipelineStep>();
Aspire.Hosting.EntityFrameworkCore.Tests (21)
EFMigrationPipelineTests.cs (21)
53var steps = new List<PipelineStep>(); 62var step = Assert.Single(steps); 91var generateStep = Assert.Single(steps); 108var scriptStep = Assert.Single(steps); 126var scriptStep = Assert.Single(steps, s => s.Name == "mymigrations-generate-migration-script"); 127var bundleStep = Assert.Single(steps, s => s.Name == "mymigrations-generate-migration-bundle"); 161var m1Bundle = Assert.Single(m1Steps, s => s.Name == "aaa-migrations-generate-migration-bundle"); 162var m2Bundle = Assert.Single(m2Steps, s => s.Name == "bbb-migrations-generate-migration-bundle"); 187var m1Script = Assert.Single(m1Steps, s => s.Name == "aaa-migrations-generate-migration-script"); 188var m1Bundle = Assert.Single(m1Steps, s => s.Name == "aaa-migrations-generate-migration-bundle"); 189var m2Script = Assert.Single(m2Steps, s => s.Name == "bbb-migrations-generate-migration-script"); 190var m2Bundle = Assert.Single(m2Steps, s => s.Name == "bbb-migrations-generate-migration-bundle"); 217var m1Bundle = Assert.Single(m1Steps); 218var m2Bundle = Assert.Single(m2Steps); 239var m1Script = Assert.Single(m1Steps); 240var m2Bundle = Assert.Single(m2Steps); 265var m1Bundle = Assert.Single(m1Steps); 266var m3Bundle = Assert.Single(m3Steps); 807var generateStep = Assert.Single(steps, s => s.Name == "mymigrations-generate-migration-bundle"); 855private static async Task<List<PipelineStep>> CreateStepsAsync( 867var results = new List<PipelineStep>();
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)
602var steps = new List<PipelineStep>(); 612var 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.Kubernetes (31)
CertManagerExtensions.cs (8)
353private static Task<IEnumerable<PipelineStep>> BuildIssuerApplySteps( 357var steps = new List<PipelineStep>(); 365var step = new PipelineStep 381return Task.FromResult<IEnumerable<PipelineStep>>(steps); 384private static Task<IEnumerable<PipelineStep>> BuildIssuerDeleteSteps( 388var steps = new List<PipelineStep>(); 394var step = new PipelineStep 414return 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)
220internal Func<KubernetesEnvironmentResource, PipelineStepFactoryContext, Task<IReadOnlyList<PipelineStep>>>? DeploymentEngineStepsFactory { get; set; } 233var steps = new List<PipelineStep>(); 239var prepareStep = new PipelineStep 251var publishStep = new PipelineStep 276var tlsBootstrapStep = new PipelineStep 292var fqdnDiscoveryStep = new PipelineStep 320var cleanupStep = new PipelineStep 353foreach (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 (12)
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>();
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.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 (14)
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();
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 (42)
BuildOnlyContainerValidationTests.cs (1)
74PipelineStep? validationStep = null;
ContainerRegistryResourceTests.cs (4)
383var pushStep = steps.FirstOrDefault(s => s.Name == "push-api"); 407var pushStep = steps.FirstOrDefault(s => s.Name == "push-mycontainer"); 455var buildStep = steps.FirstOrDefault(s => s.Name == "build-api"); 456var pushStep = steps.FirstOrDefault(s => s.Name == "push-api");
Pipelines\CorePipelineApiTests.cs (1)
15[InlineData(typeof(PipelineStep))]
Pipelines\DistributedApplicationPipelineTests.cs (33)
365var step1 = new PipelineStep 372var step2 = new PipelineStep 708var stepA = new PipelineStep 715var stepB = new PipelineStep 722var stepC = new PipelineStep 1403var step = new PipelineStep 1422var capturedSteps = new List<PipelineStep>(); 1480var step1 = configContext.Steps.First(s => s.Name == "step1"); 1481var step2 = configContext.Steps.First(s => s.Name == "step2"); 1498var foundSteps = new List<PipelineStep>(); 1541var foundSteps = new List<PipelineStep>(); 1591var foundSteps = new List<PipelineStep>(); 1783foreach (var buildStep in buildSteps) 1785foreach (var provisionStep in provisionSteps) 1791foreach (var deployStep in deploySteps) 1793foreach (var buildStep in buildSteps) 2020PipelineStep? parameterPromptingStep = null; 2021PipelineStep? deployPrereqStep = null; 2022PipelineStep? buildPrereqStep = null; 2023PipelineStep? publishPrereqStep = null; 2315var firstBeforeStart = first.Single(step => step.Name == WellKnownPipelineSteps.BeforeStart); 2316var secondBeforeStart = second.Single(step => step.Name == WellKnownPipelineSteps.BeforeStart); 2373var step = new PipelineStep 2385var deployStep = steps.Single(s => s.Name == "deploy"); 2405var taggedStep = steps.Single(s => s.Name == "tagged-step"); 2432var steps = new List<PipelineStep> 2452var steps = new List<PipelineStep> 2471.GetValue(original) as List<PipelineStep>; 2473var originalBeforeStart = originalDeploy.Single(step => step.Name == WellKnownPipelineSteps.BeforeStart); 2479.GetValue(clone) as List<PipelineStep>; 2495var cloneBeforeStart = cloneDeploy.Single(step => step.Name == WellKnownPipelineSteps.BeforeStart); 2515var step = new PipelineStep 2546var deployStep = resolved.Single(s => s.Name == WellKnownPipelineSteps.Deploy);
ProjectResourceTests.cs (2)
866var buildStep = steps.First(s => s.Name == "build-test-project"); 871var 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