# UpdateCommandStateContext

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

Context for {@ats-ref method:ResourceCommandAnnotation.UpdateState}.

## Definition

```typescript
interface UpdateCommandStateContext {
  readonly resourceSnapshot: UpdateCommandStateResourceSnapshot;
}
```

## Properties

- `resourceSnapshot`: [UpdateCommandStateResourceSnapshot](/reference/api/typescript/aspire.hosting/updatecommandstateresourcesnapshot.md) `get` -- Gets the resource snapshot data available to polyglot command state callbacks.
