# ExecuteCommandContext

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

Context for `ResourceCommandAnnotation.ExecuteCommand`.

## Definition

```go
type ExecuteCommandContext interface{}
```

## Properties

- `Arguments`: [`InteractionInputCollection`](/reference/api/go/aspire.hosting/interactioninputcollection.md) `get` -- Gets the invocation arguments supplied by the client when the command is executed.
- `CancellationToken`: `*CancellationToken` `get` -- The cancellation token.
- `Logger`: [`Logger`](/reference/api/go/aspire.hosting/logger.md) `get` -- The logger for the resource.
- `ResourceName`: `string` `get` -- The resource name.
- `Services`: [`ServiceProvider`](/reference/api/go/aspire.hosting/serviceprovider.md) `get` -- The service provider.
