# ContainerImagePushOptionsCallbackContext Properties

- Package: [Aspire.Hosting](/reference/api/csharp/aspire.hosting.md)
- Type: [ContainerImagePushOptionsCallbackContext](/reference/api/csharp/aspire.hosting/containerimagepushoptionscallbackcontext.md)
- Kind: `Properties`
- Members: `3`

Provides context information for container image push options callbacks.

## CancellationToken

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

Gets the cancellation token to observe while configuring image push options.

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

## Options

- Name: `Options`
- Modifiers: `get; init`
- Returns: [ContainerImagePushOptions](/reference/api/csharp/aspire.hosting/containerimagepushoptions.md)
- Source: [GitHub](https://github.com/microsoft/aspire/blob/bd20f904cde09ecb9c9ae5116a6f13614bf2d7c2/src/Aspire.Hosting/ApplicationModel/ContainerImagePushOptionsCallbackContext.cs)

Gets the container image push options that can be modified by the callback.

```csharp
public ContainerImagePushOptions Options { get; init; }
```

## Resource

- Name: `Resource`
- Modifiers: `get; init`
- Returns: [IResource](/reference/api/csharp/aspire.hosting/iresource.md)
- Source: [GitHub](https://github.com/microsoft/aspire/blob/bd20f904cde09ecb9c9ae5116a6f13614bf2d7c2/src/Aspire.Hosting/ApplicationModel/ContainerImagePushOptionsCallbackContext.cs)

Gets the resource being configured for container image push operations.

```csharp
public IResource Resource { get; init; }
```
