# ProgressContext

- Kind: `class`
- Package: [Aspire.Hosting](/reference/api/csharp/aspire.hosting.md)
- Version: `17.0.0`
- Namespace: `Aspire.Hosting`
- Target framework: `net10.0`
- Source: [GitHub](https://github.com/microsoft/aspire/blob/2d325b13709752ba6d9a943635c5e2940a2530c0/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.
