# PipelineContext Properties

- Package: [Aspire.Hosting](/reference/api/csharp/aspire.hosting.md)
- Type: [PipelineContext](/reference/api/csharp/aspire.hosting/pipelinecontext.md)
- Kind: `Properties`
- Members: `6`

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

## CancellationToken

- Name: `CancellationToken`
- Modifiers: `get; set`
- Returns: `CancellationToken`
- Source: [GitHub](https://github.com/microsoft/aspire/blob/bd20f904cde09ecb9c9ae5116a6f13614bf2d7c2/src/Aspire.Hosting/Pipelines/PipelineContext.cs)

Gets the cancellation token for the pipeline operation.

```csharp
public CancellationToken CancellationToken { get; set; }
```

## ExecutionContext

- Name: `ExecutionContext`
- Modifiers: `get`
- Returns: [DistributedApplicationExecutionContext](/reference/api/csharp/aspire.hosting/distributedapplicationexecutioncontext.md)
- Source: [GitHub](https://github.com/microsoft/aspire/blob/bd20f904cde09ecb9c9ae5116a6f13614bf2d7c2/src/Aspire.Hosting/Pipelines/PipelineContext.cs#L35)

Gets the execution context for the distributed application.

```csharp
public DistributedApplicationExecutionContext ExecutionContext { get; }
```

## Logger

- Name: `Logger`
- Modifiers: `get`
- Returns: `ILogger`
- Source: [GitHub](https://github.com/microsoft/aspire/blob/bd20f904cde09ecb9c9ae5116a6f13614bf2d7c2/src/Aspire.Hosting/Pipelines/PipelineContext.cs#L45)

Gets the logger for pipeline operations.

```csharp
public ILogger Logger { get; }
```

## Model

- Name: `Model`
- Modifiers: `get`
- Returns: [DistributedApplicationModel](/reference/api/csharp/aspire.hosting/distributedapplicationmodel.md)
- Source: [GitHub](https://github.com/microsoft/aspire/blob/bd20f904cde09ecb9c9ae5116a6f13614bf2d7c2/src/Aspire.Hosting/Pipelines/PipelineContext.cs#L30)

Gets the distributed application model to be deployed.

```csharp
public DistributedApplicationModel Model { get; }
```

## Services

- Name: `Services`
- Modifiers: `get`
- Returns: `IServiceProvider`
- Source: [GitHub](https://github.com/microsoft/aspire/blob/bd20f904cde09ecb9c9ae5116a6f13614bf2d7c2/src/Aspire.Hosting/Pipelines/PipelineContext.cs#L40)

Gets the service provider for dependency resolution.

```csharp
public IServiceProvider Services { get; }
```

## Summary

- Name: `Summary`
- Modifiers: `get`
- Returns: [PipelineSummary](/reference/api/csharp/aspire.hosting/pipelinesummary.md)
- Source: [GitHub](https://github.com/microsoft/aspire/blob/bd20f904cde09ecb9c9ae5116a6f13614bf2d7c2/src/Aspire.Hosting/Pipelines/PipelineContext.cs#L67)

Gets the pipeline summary that steps can add information to. The summary will be displayed to users after pipeline execution completes.

```csharp
public PipelineSummary Summary { get; }
```

## Remarks

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.

## Examples

```csharp
// In a pipeline step
context.PipelineContext.Summary.Add("☁️ Target", "Azure");
context.PipelineContext.Summary.Add("📦 Resource Group", "rg-myapp");
```
