# ContainerRuntimeArgsCallbackContext

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

Represents a callback context for the list of command-line arguments to be passed to the container runtime run command.

## Definition

```csharp
namespace Aspire.Hosting.ApplicationModel;

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

## Constructors

- [ContainerRuntimeArgsCallbackContext(IList<object>, CancellationToken)](/reference/api/csharp/aspire.hosting/containerruntimeargscallbackcontext/constructors.md#constructor-ilist-object-cancellationtoken) -- Represents a callback context for the list of command-line arguments to be passed to the container runtime run command.

## Properties

- [Args](/reference/api/csharp/aspire.hosting/containerruntimeargscallbackcontext/properties.md#args) : `IList<object>` `get` -- Gets the list of command-line arguments.
- [CancellationToken](/reference/api/csharp/aspire.hosting/containerruntimeargscallbackcontext/properties.md#cancellationtoken) : `CancellationToken` `get` -- Gets the cancellation token associated with the callback context.
