Skip to content
Docs Try Aspire

PipelineContext Properties

Class Properties 6 members
Provides contextual information and services for the pipeline execution process of a distributed application.
CancellationToken Section titled CancellationToken CancellationToken
Gets the cancellation token for the pipeline operation.
public CancellationToken CancellationToken { get; set; }
Gets the execution context for the distributed application.
public DistributedApplicationExecutionContext ExecutionContext { get; }
Gets the logger for pipeline operations.
public ILogger Logger { get; }
Gets the distributed application model to be deployed.
public DistributedApplicationModel Model { get; }
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.PipelineContext.Summary.Add("☁️ Target", "Azure");
context.PipelineContext.Summary.Add("📦 Resource Group", "rg-myapp");