146 instantiations of PipelineStep
Aspire.Hosting (24)
ApplicationModel\ProjectResource.cs (2)
52var buildStep = new PipelineStep 66var pushStep = new PipelineStep
ContainerResourceBuilderExtensions.cs (2)
65var buildStep = new PipelineStep 85var pushStep = new PipelineStep
Pipelines\DistributedApplicationPipeline.cs (17)
41_steps.Add(new PipelineStep 48var parameterPromptingStep = new PipelineStep 64_steps.Add(new PipelineStep 141_steps.Add(new PipelineStep 148_steps.Add(new PipelineStep 158_steps.Add(new PipelineStep 217var pushStep = new PipelineStep 226_steps.Add(new PipelineStep 298_steps.Add(new PipelineStep 305_steps.Add(new PipelineStep 312_steps.Add(new PipelineStep 325_steps.Add(new PipelineStep 341_steps.Add(new PipelineStep 348_steps.Add(new PipelineStep 361_steps.Add(new PipelineStep 374_steps.Add(new PipelineStep 467var step = new PipelineStep
Pipelines\PipelineStep.cs (1)
120return new PipelineStep
Pipelines\PipelineStepFactoryExtensions.cs (1)
117return builder.WithPipelineStepFactory(_ => new PipelineStep
Publishing\ManifestPublishingExtensions.cs (1)
27var step = new PipelineStep
Aspire.Hosting.Azure (7)
AzureBicepResource.cs (1)
48var provisionStep = new PipelineStep
AzureEnvironmentResource.cs (6)
80var prepareResourcesStep = new PipelineStep 93var publishStep = new PipelineStep 103var validateStep = new PipelineStep 113var createContextStep = new PipelineStep 132var provisionStep = new PipelineStep 144var destroyStep = new PipelineStep
Aspire.Hosting.Azure.AppContainers (5)
AzureContainerAppEnvironmentResource.cs (2)
49var prepareStep = new PipelineStep 69var printDashboardUrlStep = new PipelineStep
AzureContainerAppResource.cs (2)
42var printResourceSummary = new PipelineStep 73var deployStep = new PipelineStep
src\Shared\CrossScopeAcrPullIdentityPreparer.cs (1)
56new PipelineStep
Aspire.Hosting.Azure.AppService (6)
AzureAppServiceEnvironmentResource.cs (3)
57var prepareStep = new PipelineStep 70var validateStep = new PipelineStep 86var printDashboardUrlStep = new PipelineStep
AzureAppServiceWebSiteResource.cs (2)
42var printResourceSummary = new PipelineStep 71var deployStep = new PipelineStep
src\Shared\CrossScopeAcrPullIdentityPreparer.cs (1)
56new PipelineStep
Aspire.Hosting.Azure.ContainerRegistry (1)
AzureContainerRegistryResource.cs (1)
30var loginStep = new PipelineStep
Aspire.Hosting.Azure.Kubernetes (3)
AzureKubernetesEnvironmentResource.cs (2)
45var prepareStep = new PipelineStep 61var getCredentialsStep = new PipelineStep
AzureKubernetesLoadBalancerResource.cs (1)
84var step = new PipelineStep
Aspire.Hosting.Azure.Sandboxes (5)
AzureSandboxContainerDeployment.cs (3)
46new PipelineStep 56new PipelineStep 70return new PipelineStep
AzureSandboxGroupResource.cs (1)
41new()
src\Shared\CrossScopeAcrPullIdentityPreparer.cs (1)
56new PipelineStep
Aspire.Hosting.Azure.Tests (5)
AzureSandboxesTests.cs (5)
2241var pushStep = new PipelineStep 2249var registryLoginStep = new PipelineStep 2282var azureDestroyStep = new PipelineStep 2288var azureNamedSandboxDestroyStep = new PipelineStep 2399var loginStep = new PipelineStep
Aspire.Hosting.Docker (7)
DockerComposeEnvironmentResource.cs (6)
67var prepareDeploymentTargetsStep = new PipelineStep 77var publishStep = new PipelineStep 117var prepareStep = new PipelineStep 128var dockerComposeUpStep = new PipelineStep 138var dockerComposeDestroyStep = new PipelineStep 196var dockerComposeDownStep = new PipelineStep
DockerComposeServiceResource.cs (1)
44var printResourceSummary = new PipelineStep
Aspire.Hosting.Dotnet (1)
DotnetProjectResource.cs (1)
86new PipelineStep
Aspire.Hosting.Dotnet.Tests (7)
DotnetProjectResourceTests.cs (7)
181builder.Pipeline.AddStep(new PipelineStep 212builder.Pipeline.AddStep(new PipelineStep 222builder.Pipeline.AddStep(new PipelineStep 253builder.Pipeline.AddStep(new PipelineStep 281builder.Pipeline.AddStep(new PipelineStep 310builder.Pipeline.AddStep(new PipelineStep 316builder.Pipeline.AddStep(new PipelineStep
Aspire.Hosting.EntityFrameworkCore (2)
EFResourceBuilderExtensions.cs (2)
242steps.Add(new PipelineStep 286steps.Add(new PipelineStep
Aspire.Hosting.Foundry (5)
HostedAgent\AzureHostedAgentResource.cs (1)
52var 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
Aspire.Hosting.JavaScript (2)
JavaScriptHostingExtensions.cs (2)
1371containerBuilder.WithAnnotation(new PipelineStepAnnotation(_ => new PipelineStep 1718new PipelineStep
Aspire.Hosting.Kubernetes (16)
CertManagerExtensions.cs (2)
367var step = new PipelineStep 396var 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 227var helmUninstallStep = new PipelineStep
KubernetesEnvironmentResource.cs (5)
235var prepareStep = new PipelineStep 247var publishStep = new PipelineStep 272var tlsBootstrapStep = new PipelineStep 288var fqdnDiscoveryStep = new PipelineStep 316var cleanupStep = new PipelineStep
KubernetesHelmChartExtensions.cs (2)
97var installStep = new PipelineStep 110var uninstallStep = new PipelineStep
KubernetesResource.cs (1)
34var printResourceSummary = new PipelineStep
Aspire.Hosting.Radius (7)
Publishing\RadCredentialRegisterStep.cs (1)
53var step = new PipelineStep
Publishing\RadiusBicepPublishingContext.cs (1)
40var step = new PipelineStep
Publishing\RadiusDeploymentPipelineStep.cs (1)
88var step = new PipelineStep
Publishing\SealedSecretApplyStep.cs (1)
45var step = new PipelineStep
RadiusEnvironmentResource.cs (2)
46var prepareStep = new PipelineStep 62var validateSecretStoresStep = new PipelineStep
Secrets\RadiusSecretStoreExtensions.cs (1)
80storeBuilder.WithAnnotation(new PipelineStepAnnotation(_ => new PipelineStep
Aspire.Hosting.Rust.Tests (1)
AddRustAppPublishTests.cs (1)
341=> new()
Aspire.Hosting.Tests (40)
Pipelines\DistributedApplicationPipelineTests.cs (40)
255.WithPipelineStepFactory((factoryContext) => new PipelineStep 289new PipelineStep 298new PipelineStep 367var step1 = new PipelineStep 374var step2 = new PipelineStep 620.WithPipelineStepFactory((factoryContext) => new PipelineStep 627.WithPipelineStepFactory((factoryContext) => new PipelineStep 710var stepA = new PipelineStep 717var stepB = new PipelineStep 724var stepC = new PipelineStep 1006return new PipelineStep 1035.WithPipelineStepFactory((factoryContext) => new PipelineStep 1062return new PipelineStep 1089new PipelineStep 1098new PipelineStep 1129new PipelineStep 1138new PipelineStep 1405var step = new PipelineStep 1502pipeline.AddStep(new PipelineStep 1509pipeline.AddStep(new PipelineStep 1516pipeline.AddStep(new PipelineStep 1549new PipelineStep 1554new PipelineStep 1565return new PipelineStep 1598new PipelineStep 1604new PipelineStep 1698.WithPipelineStepFactory((factoryContext) => new PipelineStep 1735pipeline.AddStep(new PipelineStep 1746pipeline.AddStep(new PipelineStep 1757pipeline.AddStep(new PipelineStep 1768pipeline.AddStep(new PipelineStep 2256var step = new PipelineStep 2278pipeline.AddStep(new PipelineStep 2317new() { Name = "deploy", Action = _ => Task.CompletedTask, DependsOnSteps = { "build" } }, 2318new() { Name = "build", Action = _ => Task.CompletedTask, DependsOnSteps = { "init" } }, 2319new() { Name = "init", Action = _ => Task.CompletedTask } 2337new() { Name = "c-step", Action = _ => Task.CompletedTask }, 2338new() { Name = "a-step", Action = _ => Task.CompletedTask }, 2339new() { Name = "b-step", Action = _ => Task.CompletedTask } 2389var step = new PipelineStep
Aspire.Hosting.TestUtilities (1)
Helpers\JsonDocumentManifestPublisher.cs (1)
71var step = new PipelineStep
Publishers.AppHost (1)
DistributedApplicationBuilderExtensions.cs (1)
24var step = new PipelineStep
383 references to PipelineStep
Aspire.Hosting (131)
ApplicationModel\ProjectResource.cs (3)
45var steps = new List<PipelineStep>(); 52var buildStep = new PipelineStep 66var pushStep = new PipelineStep
Backchannel\AppHostRpcTarget.cs (1)
311if (stepsByName.TryGetValue(request.Step, out var targetStep))
ContainerResourceBuilderExtensions.cs (3)
56var steps = new List<PipelineStep>(); 65var buildStep = new PipelineStep 85var pushStep = new PipelineStep
Pipelines\DistributedApplicationPipeline.cs (74)
29private readonly List<PipelineStep> _steps = []; 33private List<PipelineStep>? _lastResolvedSteps; 48var parameterPromptingStep = new PipelineStep 217var pushStep = new PipelineStep 467var step = new PipelineStep 486private static void AddDependencies(PipelineStep step, object dependsOn) 507private static void AddRequiredBy(PipelineStep step, object requiredBy) 528public void AddStep(PipelineStep step) 547/// copies (with fresh <see cref="PipelineStep.DependsOnSteps"/> / 548/// <see cref="PipelineStep.RequiredBySteps"/> lists). Configuration callbacks 555/// appending entries to <see cref="PipelineStep.DependsOnSteps"/> on built-in 562foreach (var step in _steps) 605if (!allStepsByName.TryGetValue(stepName, out var targetStep)) 623internal async Task<List<PipelineStep>> ResolveStepsAsync(PipelineContext context) 654List<PipelineStep> steps, 655Dictionary<string, PipelineStep> stepsByName) 657foreach (var step in steps) 661if (!stepsByName.TryGetValue(requiredByStep, out var requiredByStepObj)) 677private static (List<PipelineStep> StepsToExecute, Dictionary<string, PipelineStep> StepsByName) FilterStepsForExecution( 678List<PipelineStep> allSteps, 690if (!allStepsByName.TryGetValue(stepName, out var targetStep)) 706internal static List<PipelineStep> ComputeTransitiveDependencies( 707PipelineStep step, 708Dictionary<string, PipelineStep> stepsByName) 711var result = new List<PipelineStep>(); 720if (!stepsByName.TryGetValue(stepName, out var currentStep)) 739private static async Task<List<PipelineStep>> CollectStepsFromAnnotationsAsync(PipelineContext context) 741var steps = new List<PipelineStep>(); 757foreach (var step in annotationSteps) 770List<PipelineStep> allSteps) 805private static void ValidateSteps(IEnumerable<PipelineStep> steps) 809foreach (var step in steps) 818foreach (var step in steps) 845List<PipelineStep> steps, 846Dictionary<string, PipelineStep> stepsByName, 855foreach (var step in steps) 861async Task ExecuteStepWithDependencies(PipelineStep step) 942var step = steps[i]; 989List<PipelineStep> steps, 1004foreach (var step in orderedSteps) 1072List<PipelineStep> steps, 1073Dictionary<string, PipelineStep> stepsByName) 1079foreach (var step in steps) 1107if (stepsByName.TryGetValue(stepName, out var step)) 1121foreach (var step in steps) 1130private static async Task ExecuteStepAsync(PipelineStep step, PipelineStepContext stepContext) 1156List<PipelineStep> allSteps, 1189var step = executionOrder[i]; 1201foreach (var step in allSteps.OrderBy(s => s.Name, StringComparer.Ordinal)) 1257foreach (var step in allSteps) 1279foreach (var step in orphanedSteps) 1299foreach (var targetStep in allSteps.OrderBy(s => s.Name, StringComparer.Ordinal)) 1358PipelineStep step, 1359Dictionary<string, PipelineStep> stepsByName, 1373if (stepsByName.TryGetValue(depName, out var depStep)) 1389List<PipelineStep> steps, 1390Dictionary<string, PipelineStep> stepsByName) 1395foreach (var step in steps) 1412private static int GetExecutionLevel(PipelineStep step, Dictionary<string, PipelineStep> stepsByName) 1422List<PipelineStep> steps, 1423Dictionary<string, PipelineStep> stepsByName) 1427foreach (var step in steps) 1436PipelineStep step, 1437Dictionary<string, PipelineStep> stepsByName, 1455if (stepsByName.TryGetValue(depName, out var depStep)) 1471internal static List<PipelineStep> GetTopologicalOrder(List<PipelineStep> steps) 1475var result = new List<PipelineStep>(); 1477void Visit(PipelineStep step) 1488if (stepsByName.TryGetValue(depName, out var depStep)) 1499foreach (var step in sortedSteps) 1520foreach (var step in _steps)
Pipelines\DistributedApplicationPipelineExtensions.cs (1)
31var validationStep = context.Steps.SingleOrDefault(step => step.Name == DistributedApplicationPipeline.ValidateBuildOnlyContainerReferencesStepName);
Pipelines\IDistributedApplicationPipeline.cs (1)
32void AddStep(PipelineStep step);
Pipelines\PipelineConfigurationContext.cs (5)
26public required IReadOnlyList<PipelineStep> Steps 49internal ILookup<IResource?, PipelineStep>? StepToResourceMap { get; init; } 69public IEnumerable<PipelineStep> GetSteps(string tag) 82public IEnumerable<PipelineStep> GetSteps(IResource resource) 97public IEnumerable<PipelineStep> GetSteps(IResource resource, string tag)
Pipelines\PipelineEditor.cs (4)
15internal sealed class PipelineEditor(IReadOnlyList<PipelineStep> steps) 17private readonly IReadOnlyList<PipelineStep> _steps = steps ?? throw new ArgumentNullException(nameof(steps)); 24public IReadOnlyList<PipelineStep> Steps() => _steps; 32public IReadOnlyList<PipelineStep> StepsByTag(string tag)
Pipelines\PipelineStep.cs (3)
75public void DependsOn(PipelineStep step) 107public void RequiredBy(PipelineStep step) 118internal PipelineStep Clone()
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)
21public static IEnumerable<PipelineStep> DependsOn(this IEnumerable<PipelineStep> steps, PipelineStep? step) 28foreach (var s in steps) 43public static IEnumerable<PipelineStep> DependsOn(this IEnumerable<PipelineStep> steps, string stepName) 50foreach (var s in steps) 65public static IEnumerable<PipelineStep> DependsOn(this IEnumerable<PipelineStep> steps, IEnumerable<PipelineStep> targetSteps) 67foreach (var step in targetSteps) 69foreach (var s in steps) 85public static IEnumerable<PipelineStep> RequiredBy(this IEnumerable<PipelineStep> steps, PipelineStep? step) 92foreach (var s in steps) 107public static IEnumerable<PipelineStep> RequiredBy(this IEnumerable<PipelineStep> steps, string stepName) 114foreach (var s in steps) 129public static IEnumerable<PipelineStep> RequiredBy(this IEnumerable<PipelineStep> steps, IEnumerable<PipelineStep> targetSteps) 131foreach (var step in targetSteps) 133foreach (var s in steps)
Pipelines\PipelineStepFactoryExtensions.cs (4)
26Func<PipelineStepFactoryContext, PipelineStep> factory) where T : IResource 45Func<PipelineStepFactoryContext, Task<PipelineStep>> factory) where T : IResource 64Func<PipelineStepFactoryContext, IEnumerable<PipelineStep>> factory) where T : IResource 83Func<PipelineStepFactoryContext, Task<IEnumerable<PipelineStep>>> factory) where T : IResource
Publishing\ManifestPublishingExtensions.cs (1)
27var step = new PipelineStep
Aspire.Hosting.Azure (8)
AzureBicepResource.cs (1)
48var provisionStep = new PipelineStep
AzureEnvironmentResource.cs (7)
78var steps = new List<PipelineStep>(); 80var prepareResourcesStep = new PipelineStep 93var publishStep = new PipelineStep 103var validateStep = new PipelineStep 113var createContextStep = new PipelineStep 132var provisionStep = new PipelineStep 144var destroyStep = new PipelineStep
Aspire.Hosting.Azure.AppContainers (9)
AzureContainerAppEnvironmentResource.cs (4)
44var steps = new List<PipelineStep>(); 49var prepareStep = new PipelineStep 69var printDashboardUrlStep = new PipelineStep 102foreach (var step in deploymentTargetSteps)
AzureContainerAppExtensions.cs (2)
111var validationStep = context.Steps.Single(step => step.Name == ValidateContainerAppsStepName); 124var prepareStep = context.GetSteps(environment)
AzureContainerAppResource.cs (3)
40var steps = new List<PipelineStep>(); 42var printResourceSummary = new PipelineStep 73var deployStep = new PipelineStep
Aspire.Hosting.Azure.AppService (8)
AzureAppServiceEnvironmentResource.cs (5)
52var steps = new List<PipelineStep>(); 57var prepareStep = new PipelineStep 70var validateStep = new PipelineStep 86var printDashboardUrlStep = new PipelineStep 119foreach (var step in deploymentTargetSteps)
AzureAppServiceWebSiteResource.cs (3)
40var steps = new List<PipelineStep>(); 42var printResourceSummary = new PipelineStep 71var deployStep = new PipelineStep
Aspire.Hosting.Azure.ContainerRegistry (1)
AzureContainerRegistryResource.cs (1)
30var loginStep = new PipelineStep
Aspire.Hosting.Azure.Kubernetes (7)
AzureKubernetesEnvironmentExtensions.cs (2)
117foreach (var pushStep in pushSteps) 869var steps = new List<PipelineStep>();
AzureKubernetesEnvironmentResource.cs (3)
45var prepareStep = new PipelineStep 61var getCredentialsStep = new PipelineStep 72return Task.FromResult<IEnumerable<PipelineStep>>([prepareStep, getCredentialsStep]);
AzureKubernetesLoadBalancerResource.cs (2)
84var step = new PipelineStep 95return Task.FromResult<IEnumerable<PipelineStep>>([step]);
Aspire.Hosting.Azure.Kubernetes.Tests (8)
AzureKubernetesInfrastructureTests.cs (8)
423var steps = new List<PipelineStep>(); 433var getCredentialsStep = Assert.Single(steps, step => step.Name == "aks-get-credentials-aks"); 516var steps = new List<PipelineStep>(); 526var getCredentialsStep = Assert.Single(steps, step => step.Name == "aks-get-credentials-aks"); 728var steps = new List<PipelineStep>(); 738var getCredentialsStep = Assert.Single(steps, step => step.Name == "aks-get-credentials-aks"); 797var steps = new List<PipelineStep>(); 807var getCredentialsStep = Assert.Single(steps, step => step.Name == "aks-get-credentials-aks");
Aspire.Hosting.Azure.Sandboxes (15)
AzureSandboxCleanupResource.cs (1)
41private IEnumerable<PipelineStep> CreateSteps(PipelineStepFactoryContext context)
AzureSandboxContainerDeployment.cs (12)
39public static IEnumerable<PipelineStep> CreatePipelineSteps(AzureSandboxContainerResource resource) 68internal static PipelineStep CreateStaleCleanupPipelineStep(IResource resource, IReadOnlySet<string> activeStateSectionNames) 108foreach (var step in GetAzureEnvironmentDestroySteps(context)) 118foreach (var step in GetAzureEnvironmentDestroySteps(context)) 154foreach (var consumerStep in deploySteps) 156foreach (var producerStep in producerSteps) 170private static IEnumerable<PipelineStep> GetAzureEnvironmentDestroySteps(PipelineConfigurationContext context) 175foreach (var step in context.GetSteps(environment).Where(step => string.Equals(step.Name, expectedName, StringComparison.Ordinal))) 183IReadOnlyList<PipelineStep> steps, 184PipelineStep consumer, 185PipelineStep producer) 207if (stepLookup.TryGetValue(stepName, out var step))
AzureSandboxGroupResource.cs (2)
39var steps = new List<PipelineStep> 69foreach (var step in deploymentTargetSteps)
Aspire.Hosting.Azure.Tests (26)
AzureAppServiceTests.cs (2)
1401private static async Task<List<PipelineStep>> CreateStepsAsync(DistributedApplication app, AzureAppServiceEnvironmentResource resource) 1410var results = new List<PipelineStep>();
AzureBicepResourceTests.cs (1)
236var step = steps.First();
AzureContainerAppsTests.cs (2)
3187private static async Task<List<PipelineStep>> CreateStepsAsync(DistributedApplication app, AzureContainerAppEnvironmentResource resource) 3196var 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)
544var prepareResourcesStep = Assert.Single(steps, step => step.Name == AzureEnvironmentResource.PrepareResourcesStepName); 5180private static async Task<(IReadOnlyList<PipelineStep> Steps, PipelineContext PipelineContext)> CreateAzureEnvironmentPipelineStepsAsync(
AzureSandboxesTests.cs (13)
2235var deployStep = Assert.Single(steps, step => step.Name == "deploy-frontend-sandbox-container"); 2241var pushStep = new PipelineStep 2249var registryLoginStep = new PipelineStep 2271var destroyStep = Assert.Single(steps, step => step.Name == "destroy-frontend-sandbox-container"); 2277var staleCleanupStep = Assert.Single(cleanupSteps, step => step.Name == "destroy-stale-azure-sandboxes"); 2282var azureDestroyStep = new PipelineStep 2288var azureNamedSandboxDestroyStep = new PipelineStep 2399var loginStep = new PipelineStep 2416var deployStep = Assert.Single(steps, step => step.Name == "deploy-frontend-sandbox-container"); 2509var apiDeploy = Assert.Single(steps, step => step.Name == "deploy-api-sandbox-container"); 2510var webDeploy = Assert.Single(steps, step => step.Name == "deploy-web-sandbox-container"); 2753private static async Task<List<PipelineStep>> CreateStepsAsync(DistributedApplication app, IResource resource) 2762var results = new List<PipelineStep>();
Aspire.Hosting.Containers.Tests (6)
WithDockerfileTests.cs (6)
810var buildStep = steps.Single(s => s.Tags.Contains(WellKnownPipelineTags.BuildCompute)); 815var pushStep = steps.Single(s => s.Tags.Contains(WellKnownPipelineTags.PushContainerImage)); 977var buildStep = steps.Single(s => s.Tags.Contains(WellKnownPipelineTags.BuildCompute)); 982var pushStep = steps.Single(s => s.Tags.Contains(WellKnownPipelineTags.PushContainerImage)); 1022var buildStep = steps.Single(s => s.Tags.Contains(WellKnownPipelineTags.BuildCompute)); 1027var pushStep = steps.Single(s => s.Tags.Contains(WellKnownPipelineTags.PushContainerImage));
Aspire.Hosting.Docker (10)
DockerComposeEnvironmentResource.cs (8)
65var steps = new List<PipelineStep>(); 67var prepareDeploymentTargetsStep = new PipelineStep 77var publishStep = new PipelineStep 107foreach (var step in deploymentTargetSteps) 117var prepareStep = new PipelineStep 128var dockerComposeUpStep = new PipelineStep 138var dockerComposeDestroyStep = new PipelineStep 196var dockerComposeDownStep = new PipelineStep
DockerComposeServiceResource.cs (2)
42var steps = new List<PipelineStep>(); 44var printResourceSummary = new PipelineStep
Aspire.Hosting.Dotnet (8)
DotnetProjectResource.cs (8)
102var validationStep = context.Steps.SingleOrDefault(step => 112foreach (var step in GetPublishAndDeploySteps(context)) 131private static IEnumerable<PipelineStep> GetPublishAndDeploySteps(PipelineConfigurationContext context) 153private static IEnumerable<PipelineStep> GetStepsRequiredByRoots( 154IReadOnlyList<PipelineStep> steps, 162var pendingSteps = new Queue<PipelineStep>(); 173while (pendingSteps.TryDequeue(out var step)) 190foreach (var requiredStep in requiredStepsByName[step.Name])
Aspire.Hosting.EntityFrameworkCore (2)
EFResourceBuilderExtensions.cs (2)
201internal static IEnumerable<PipelineStep> CreateMigrationPipelineStep(PipelineStepFactoryContext context) 210var steps = new List<PipelineStep>();
Aspire.Hosting.EntityFrameworkCore.Tests (19)
EFMigrationPipelineTests.cs (19)
27var generateStep = Assert.Single(steps); 44var scriptStep = Assert.Single(steps); 62var scriptStep = Assert.Single(steps, s => s.Name == "mymigrations-generate-migration-script"); 63var bundleStep = Assert.Single(steps, s => s.Name == "mymigrations-generate-migration-bundle"); 97var m1Bundle = Assert.Single(m1Steps, s => s.Name == "aaa-migrations-generate-migration-bundle"); 98var m2Bundle = Assert.Single(m2Steps, s => s.Name == "bbb-migrations-generate-migration-bundle"); 123var m1Script = Assert.Single(m1Steps, s => s.Name == "aaa-migrations-generate-migration-script"); 124var m1Bundle = Assert.Single(m1Steps, s => s.Name == "aaa-migrations-generate-migration-bundle"); 125var m2Script = Assert.Single(m2Steps, s => s.Name == "bbb-migrations-generate-migration-script"); 126var m2Bundle = Assert.Single(m2Steps, s => s.Name == "bbb-migrations-generate-migration-bundle"); 153var m1Bundle = Assert.Single(m1Steps); 154var m2Bundle = Assert.Single(m2Steps); 175var m1Script = Assert.Single(m1Steps); 176var m2Bundle = Assert.Single(m2Steps); 201var m1Bundle = Assert.Single(m1Steps); 202var m3Bundle = Assert.Single(m3Steps); 719var generateStep = Assert.Single(steps, s => s.Name == "mymigrations-generate-migration-bundle"); 767private static async Task<List<PipelineStep>> CreateStepsAsync( 779var results = new List<PipelineStep>();
Aspire.Hosting.Foundry (9)
HostedAgent\AzureHostedAgentResource.cs (2)
46List<PipelineStep> steps = []; 52var 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);
Aspire.Hosting.Foundry.Tests (2)
PromptAgentTests.cs (2)
604var steps = new List<PipelineStep>(); 614var beforeStartStep = steps.SingleOrDefault(s => s.Name == "deploy-my-agent-before-start");
Aspire.Hosting.Kubernetes (31)
CertManagerExtensions.cs (8)
355private static Task<IEnumerable<PipelineStep>> BuildIssuerApplySteps( 359var steps = new List<PipelineStep>(); 367var step = new PipelineStep 383return Task.FromResult<IEnumerable<PipelineStep>>(steps); 386private static Task<IEnumerable<PipelineStep>> BuildIssuerDeleteSteps( 390var steps = new List<PipelineStep>(); 396var step = new PipelineStep 415return 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 227var helmUninstallStep = new PipelineStep 237return Task.FromResult<IReadOnlyList<PipelineStep>>(steps);
KubernetesEnvironmentResource.cs (8)
216internal Func<KubernetesEnvironmentResource, PipelineStepFactoryContext, Task<IReadOnlyList<PipelineStep>>>? DeploymentEngineStepsFactory { get; set; } 229var steps = new List<PipelineStep>(); 235var prepareStep = new PipelineStep 247var publishStep = new PipelineStep 272var tlsBootstrapStep = new PipelineStep 288var fqdnDiscoveryStep = new PipelineStep 316var cleanupStep = new PipelineStep 349foreach (var step in deploymentTargetSteps)
KubernetesHelmChartExtensions.cs (4)
95var steps = new List<PipelineStep>(); 97var installStep = new PipelineStep 110var uninstallStep = new PipelineStep 127return 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)
415var installStep = Assert.Single(steps, s => s.Name == "helm-install-test"); 416var uninstallStep = Assert.Single(steps, s => s.Name == "helm-uninstall-test"); 439var installStep = Assert.Single(steps, s => s.Name == "helm-install-test"); 458var uninstallStep = Assert.Single(steps, s => s.Name == "helm-uninstall-my-release"); 473var uninstallStep = Assert.Single(steps, s => s.Name == "helm-uninstall-my-release"); 508private static async Task<List<PipelineStep>> CreateStepsAsync( 520var results = new List<PipelineStep>();
PipelineStepTestHelpers.cs (4)
23public static async Task<List<PipelineStep>> CreateStepsAsync(IServiceProvider services, IResource resource) 27var results = new List<PipelineStep>(); 44public static async Task RunStepAsync(IServiceProvider services, PipelineStep step) 68public static List<string> GatewayOrTlsStepNames(IEnumerable<PipelineStep> steps) =>
Aspire.Hosting.Radius (17)
Publishing\RadCredentialRegisterStep.cs (3)
47/// Creates a <see cref="PipelineStep"/> that runs <c>rad credential register</c> 51internal PipelineStep CreatePipelineStep() 53var step = new PipelineStep
Publishing\RadiusBicepPublishingContext.cs (3)
36/// Creates a <see cref="PipelineStep"/> that generates Radius Bicep during publish. 38internal PipelineStep CreatePipelineStep() 40var step = new PipelineStep
Publishing\RadiusDeploymentPipelineStep.cs (3)
83/// Creates a <see cref="PipelineStep"/> that deploys a Radius application via <c>rad deploy</c>. 86internal PipelineStep CreatePipelineStep() 88var step = new PipelineStep
Publishing\SealedSecretApplyStep.cs (2)
43internal PipelineStep CreatePipelineStep() 45var step = new PipelineStep
RadiusEnvironmentResource.cs (6)
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(); 83var registerStep = new RadCredentialRegisterStep(this).CreatePipelineStep();
Aspire.Hosting.Radius.Tests (11)
Deployment\DeployPipelineIntegrationTests.cs (6)
45var pipelineStep = step.CreatePipelineStep(); 65var pipelineStep = step.CreatePipelineStep(); 82var pipelineStep = step.CreatePipelineStep(); 96var pipelineStep = step.CreatePipelineStep(); 110var pipelineStep = step.CreatePipelineStep(); 140var step = deployStep.CreatePipelineStep();
Deployment\RadCliDetectionTests.cs (3)
66var pipelineStep = step.CreatePipelineStep(); 77var pipelineStep = step.CreatePipelineStep(); 91var pipelineStep = step.CreatePipelineStep();
DeploymentE2E\DeployEndToEndTests.cs (1)
109var pipelineStep = step.CreatePipelineStep();
Secrets\SecretStoreValidationTests.cs (1)
131var gate = Assert.Single(steps);
Aspire.Hosting.Rust.Tests (5)
AddRustAppPublishTests.cs (5)
279var pipelineSteps = new PipelineStepAnnotation(_ => Array.Empty<PipelineStep>()); 318var rustBuildStep = CreateBuildComputeStep("build-api", rust.Resource); 319var frontendBuildStep = CreateBuildComputeStep("build-frontend", frontend.Resource); 320var assetsBuildStep = CreateBuildComputeStep("build-assets", assets.Resource); 340private static PipelineStep CreateBuildComputeStep(string name, IResource resource)
Aspire.Hosting.Tests (36)
BuildOnlyContainerValidationTests.cs (1)
76PipelineStep? validationStep = null;
ContainerRegistryResourceTests.cs (4)
384var pushStep = steps.FirstOrDefault(s => s.Name == "push-api"); 408var pushStep = steps.FirstOrDefault(s => s.Name == "push-mycontainer"); 456var buildStep = steps.FirstOrDefault(s => s.Name == "build-api"); 457var pushStep = steps.FirstOrDefault(s => s.Name == "push-api");
Pipelines\DistributedApplicationPipelineTests.cs (29)
367var step1 = new PipelineStep 374var step2 = new PipelineStep 710var stepA = new PipelineStep 717var stepB = new PipelineStep 724var stepC = new PipelineStep 1405var step = new PipelineStep 1424var capturedSteps = new List<PipelineStep>(); 1482var step1 = configContext.Steps.First(s => s.Name == "step1"); 1483var step2 = configContext.Steps.First(s => s.Name == "step2"); 1500var foundSteps = new List<PipelineStep>(); 1543var foundSteps = new List<PipelineStep>(); 1593var foundSteps = new List<PipelineStep>(); 1785foreach (var buildStep in buildSteps) 1787foreach (var provisionStep in provisionSteps) 1793foreach (var deployStep in deploySteps) 1795foreach (var buildStep in buildSteps) 2022PipelineStep? parameterPromptingStep = null; 2023PipelineStep? deployPrereqStep = null; 2024PipelineStep? buildPrereqStep = null; 2025PipelineStep? publishPrereqStep = null; 2256var step = new PipelineStep 2268var deployStep = steps.Single(s => s.Name == "deploy"); 2288var taggedStep = steps.Single(s => s.Name == "tagged-step"); 2315var steps = new List<PipelineStep> 2335var steps = new List<PipelineStep> 2356.GetValue(original) as List<PipelineStep>; 2359.GetValue(clone) as List<PipelineStep>; 2389var step = new PipelineStep 2420var deployStep = resolved.Single(s => s.Name == WellKnownPipelineSteps.Deploy);
ProjectResourceTests.cs (2)
865var buildStep = steps.First(s => s.Name == "build-test-project"); 870var pushStep = steps.First(s => s.Name == "push-test-project");
Aspire.Hosting.TestUtilities (1)
Helpers\JsonDocumentManifestPublisher.cs (1)
71var step = new PipelineStep
Publishers.AppHost (1)
DistributedApplicationBuilderExtensions.cs (1)
24var step = new PipelineStep