# ProgressContext

- Kind: `class`
- Package: [Aspire.Hosting](/reference/api/csharp/aspire.hosting.md)
- Version: `13.5.3`
- Namespace: `Aspire.Hosting`
- Target framework: `net10.0`
- Source: [GitHub](https://github.com/microsoft/aspire/blob/b5f143315ffb6968ea939a9978797a5b20e4c688/src/Aspire.Hosting/IInteractionService.cs)

Provides context to the work callback of a progress interaction.

## Definition

```csharp
namespace Aspire.Hosting;

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

## Constructors

- [ProgressContext](/reference/api/csharp/aspire.hosting/progresscontext/constructors.md#constructor)

## Properties

- [CancellationToken](/reference/api/csharp/aspire.hosting/progresscontext/properties.md#cancellationtoken) : `CancellationToken` `get; init` -- Gets the `Threading.CancellationToken` that is triggered when the user clicks the cancel button or the operation is externally canceled.
