# 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/a3766e994fd2cba86c8ac60b8a80268cab7e6383/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.
