# PipelineContext

- Kind: `class`
- Package: [Aspire.Hosting](/reference/api/csharp/aspire.hosting.md)
- Version: `13.3.0`
- Namespace: `Aspire.Hosting.Pipelines`
- Target framework: `net8.0`
- Source: [GitHub](https://github.com/microsoft/aspire/blob/bd20f904cde09ecb9c9ae5116a6f13614bf2d7c2/src/Aspire.Hosting/Pipelines/PipelineContext.cs)

Provides contextual information and services for the pipeline execution process of a distributed application.

## Definition

```csharp
namespace Aspire.Hosting.Pipelines;

public sealed class PipelineContext
{
    // ...
}
```

## ATS metadata

### ATS export

- Type ID: `Aspire.Hosting/PipelineContext`
- Public instance properties are exported as ATS capabilities.

## Constructors

- [PipelineContext(DistributedApplicationModel, DistributedApplicationExecutionContext, IServiceProvider, ILogger, CancellationToken)](/reference/api/csharp/aspire.hosting/pipelinecontext/constructors.md#constructor-distributedapplicationmodel-distributedapplicationexecutioncontext-iserviceprovider-ilogger-cancellationtoken) -- Provides contextual information and services for the pipeline execution process of a distributed application.

## Properties

- [CancellationToken](/reference/api/csharp/aspire.hosting/pipelinecontext/properties.md#cancellationtoken) : `CancellationToken` `get; set` -- Gets the cancellation token for the pipeline operation.
- [ExecutionContext](/reference/api/csharp/aspire.hosting/pipelinecontext/properties.md#executioncontext) : [DistributedApplicationExecutionContext](/reference/api/csharp/aspire.hosting/distributedapplicationexecutioncontext.md) `get` -- Gets the execution context for the distributed application.
- [Logger](/reference/api/csharp/aspire.hosting/pipelinecontext/properties.md#logger) : `ILogger` `get` -- Gets the logger for pipeline operations.
- [Model](/reference/api/csharp/aspire.hosting/pipelinecontext/properties.md#model) : [DistributedApplicationModel](/reference/api/csharp/aspire.hosting/distributedapplicationmodel.md) `get` -- Gets the distributed application model to be deployed.
- [Services](/reference/api/csharp/aspire.hosting/pipelinecontext/properties.md#services) : `IServiceProvider` `get` -- Gets the service provider for dependency resolution.
- [Summary](/reference/api/csharp/aspire.hosting/pipelinecontext/properties.md#summary) : [PipelineSummary](/reference/api/csharp/aspire.hosting/pipelinesummary.md) `get` -- Gets the pipeline summary that steps can add information to. The summary will be displayed to users after pipeline execution completes.
