Skip to content
Docs Try Aspire

PipelineStepContext Properties

Class Properties 8 members
Provides contextual information for a specific pipeline step execution.
CancellationToken Section titled CancellationToken CancellationToken
Gets the cancellation token for the pipeline operation.
public CancellationToken CancellationToken { get; }
Gets the execution context for the distributed application.
public DistributedApplicationExecutionContext ExecutionContext { get; }
Gets the logger for pipeline operations that writes to both the pipeline logger and the step logger.
public ILogger Logger { get; }
Gets the distributed application model to be deployed.
public DistributedApplicationModel Model { get; }
Gets the pipeline context shared across all steps.
public PipelineContext PipelineContext { get; init; }
Gets the publishing step associated with this specific step execution.
public IReportingStep ReportingStep { get; init; }
Services Section titled Services IServiceProvider
Gets the service provider for dependency resolution.
public IServiceProvider Services { get; }
Gets the pipeline summary that steps can add information to. The summary will be displayed to users after pipeline execution completes.
public PipelineSummary Summary { get; }
Pipeline steps can add key-value pairs to the summary to provide useful information about the pipeline execution, such as deployment targets, resource names, URLs, etc.
// In a pipeline step
context.Summary.Add("☁️ Target", "Azure");
context.Summary.Add("📦 Resource Group", "rg-myapp");