PipelineStepFactoryExtensions Methods
ClassMethods7 members
Provides extension methods for adding pipeline steps to resources.
WithPipelineConfiguration(IResourceBuilder<T>, Func<PipelineConfigurationContext, Task>) Section titled WithPipelineConfiguration(IResourceBuilder<T>, Func<PipelineConfigurationContext, Task>)extensionI Registers a callback to be executed during the pipeline configuration phase, allowing modification of step dependencies and relationships.
public static class PipelineStepFactoryExtensions{ public static IResourceBuilder<T> WithPipelineConfiguration<T>( this IResourceBuilder<T> builder, Func<PipelineConfigurationContext, Task> callback) { // ... }}Parameters
builderIcallbackFunc<PipelineConfigurationContext, Task> The callback function to execute during the configuration phase.Returns
IResourceBuilder<T> The resource builder for chaining.WithPipelineConfiguration(IResourceBuilder<T>, Action<PipelineConfigurationContext>) Section titled WithPipelineConfiguration(IResourceBuilder<T>, Action<PipelineConfigurationContext>)extensionI Registers a callback to be executed during the pipeline configuration phase, allowing modification of step dependencies and relationships.
public static class PipelineStepFactoryExtensions{ public static IResourceBuilder<T> WithPipelineConfiguration<T>( this IResourceBuilder<T> builder, Action<PipelineConfigurationContext> callback) { // ... }}Parameters
builderIcallbackAction<PipelineConfigurationContext> The callback function to execute during the configuration phase.Returns
IResourceBuilder<T> The resource builder for chaining.WithPipelineStepFactory(IResourceBuilder<T>, Func<PipelineStepFactoryContext, PipelineStep>) Section titled WithPipelineStepFactory(IResourceBuilder<T>, Func<PipelineStepFactoryContext, PipelineStep>)extensionI Adds a pipeline step to the resource that will be executed during deployment.
public static class PipelineStepFactoryExtensions{ public static IResourceBuilder<T> WithPipelineStepFactory<T>( this IResourceBuilder<T> builder, Func<PipelineStepFactoryContext, PipelineStep> factory) { // ... }}Parameters
builderIfactoryFunc<PipelineStepFactoryContext, PipelineStep> A factory function that creates the pipeline step.Returns
IResourceBuilder<T> The resource builder for chaining.Remarks
This overload is not available in polyglot AppHosts. Use the overload that takes a step name and callback instead.
WithPipelineStepFactory(IResourceBuilder<T>, Func<PipelineStepFactoryContext, Task<PipelineStep>>) Section titled WithPipelineStepFactory(IResourceBuilder<T>, Func<PipelineStepFactoryContext, Task<PipelineStep>>)extensionI Adds a pipeline step to the resource that will be executed during deployment.
public static class PipelineStepFactoryExtensions{ public static IResourceBuilder<T> WithPipelineStepFactory<T>( this IResourceBuilder<T> builder, Func<PipelineStepFactoryContext, Task<PipelineStep>> factory) { // ... }}Parameters
builderIfactoryFunc<PipelineStepFactoryContext, Task<PipelineStep>> An async factory function that creates the pipeline step.Returns
IResourceBuilder<T> The resource builder for chaining.Remarks
This overload is not available in polyglot AppHosts. Use the overload that takes a step name and callback instead.
WithPipelineStepFactory(IResourceBuilder<T>, Func<PipelineStepFactoryContext, IEnumerable<PipelineStep>>) Section titled WithPipelineStepFactory(IResourceBuilder<T>, Func<PipelineStepFactoryContext, IEnumerable<PipelineStep>>)extensionI Adds multiple pipeline steps to the resource that will be executed during deployment.
public static class PipelineStepFactoryExtensions{ public static IResourceBuilder<T> WithPipelineStepFactory<T>( this IResourceBuilder<T> builder, Func<PipelineStepFactoryContext, IEnumerable<PipelineStep>> factory) { // ... }}Parameters
builderIfactoryFunc<PipelineStepFactoryContext, IEnumerable<PipelineStep>> A factory function that creates multiple pipeline steps.Returns
IResourceBuilder<T> The resource builder for chaining.Remarks
This overload is not available in polyglot AppHosts. Use the overload that takes a step name and callback instead, and call it multiple times.
WithPipelineStepFactory(IResourceBuilder<T>, Func<PipelineStepFactoryContext, Task<IEnumerable<PipelineStep>>>) Section titled WithPipelineStepFactory(IResourceBuilder<T>, Func<PipelineStepFactoryContext, Task<IEnumerable<PipelineStep>>>)extensionI Adds multiple pipeline steps to the resource that will be executed during deployment.
public static class PipelineStepFactoryExtensions{ public static IResourceBuilder<T> WithPipelineStepFactory<T>( this IResourceBuilder<T> builder, Func<PipelineStepFactoryContext, Task<IEnumerable<PipelineStep>>> factory) { // ... }}Parameters
builderIfactoryFunc<PipelineStepFactoryContext, Task<IEnumerable<PipelineStep>>> An async factory function that creates multiple pipeline steps.Returns
IResourceBuilder<T> The resource builder for chaining.Remarks
This overload is not available in polyglot AppHosts. Use the overload that takes a step name and callback instead, and call it multiple times.
WithPipelineStepFactory(IResourceBuilder<T>, string, Func<PipelineStepContext, Task>, string[]?, string[]?, string[]?, string?) Section titled WithPipelineStepFactory(IResourceBuilder<T>, string, Func<PipelineStepContext, Task>, string[]?, string[]?, string[]?, string?)extensionI Adds a pipeline step to the resource that will be executed during deployment.
public static class PipelineStepFactoryExtensions{ public static IResourceBuilder<T> WithPipelineStepFactory<T>( this IResourceBuilder<T> builder, string stepName, Func<PipelineStepContext, Task> callback, string[]? dependsOn = null, string[]? requiredBy = null, string[]? tags = null, string? description = null) { // ... }}Parameters
builderIstepName stringThe unique name of the pipeline step.callbackFunc<PipelineStepContext, Task> The callback to execute when the step runs.dependsOn string[]? optionalOptional step names that this step depends on.requiredBy string[]? optionalOptional step names that require this step.tagsstring[]? optionalOptional tags that categorize this step.descriptionstring?optionalAn optional human-readable description of the step.Returns
IResourceBuilder<T> The resource builder for chaining.