# ExecuteCommandContext

- Module: [Aspire.Hosting](/reference/api/typescript/aspire.hosting.md)
- Version: `13.2.0`
- Kind: `handle`
- Source: [GitHub](https://github.com/microsoft/aspire)

## Definition

```typescript
interface ExecuteCommandContext {
  cancellationToken: cancellationToken;
  resourceName: string;
  serviceProvider: IServiceProvider;
}
```

## Properties

- `cancellationToken`: `cancellationToken` `get - set` -- Gets the CancellationToken property
- `resourceName`: `string` `get - set` -- Gets the ResourceName property
- `serviceProvider`: [IServiceProvider](/reference/api/typescript/aspire.hosting/iserviceprovider.md) `get - set` -- Gets the ServiceProvider property
