# ContainerRuntimeArgsCallbackContext Constructors

- Package: [Aspire.Hosting](/reference/api/csharp/aspire.hosting.md)
- Type: [ContainerRuntimeArgsCallbackContext](/reference/api/csharp/aspire.hosting/containerruntimeargscallbackcontext.md)
- Kind: `Constructors`
- Members: `1`

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

## ContainerRuntimeArgsCallbackContext(IList<object>, CancellationToken)

- Name: `Constructor(IList<object>, CancellationToken)`
- Source: [GitHub](https://github.com/microsoft/aspire/blob/bd20f904cde09ecb9c9ae5116a6f13614bf2d7c2/src/Aspire.Hosting/ApplicationModel/ContainerRuntimeArgsCallbackAnnotation.cs#L51-L61)

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

```csharp
public sealed class ContainerRuntimeArgsCallbackContext
{
    public ContainerRuntimeArgsCallbackContext(
        IList<object> args,
        CancellationToken cancellationToken = default(CancellationToken))
    {
        // ...
    }
}
```

## Parameters

- `args` (`IList<object>`)
  The list of command-line arguments.
- `cancellationToken` (`CancellationToken`) `optional`
  The cancellation token associated with this execution.
