
# EnvironmentCallbackContext

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

Represents a callback context for environment variables associated with a publisher.

## Definition

```typescript
interface EnvironmentCallbackContext {
  readonly environment: EnvironmentEditor;
  readonly executionContext: DistributedApplicationExecutionContext;
  readonly log: LogFacade;
  readonly resource: IResource;
}
```

## Properties

- `environment`: [EnvironmentEditor](/reference/api/typescript/aspire.hosting/environmenteditor.md) `get` -- Gets the editor used to set environment variables in polyglot callbacks.
- `executionContext`: [DistributedApplicationExecutionContext](/reference/api/typescript/aspire.hosting/distributedapplicationexecutioncontext.md) `get` -- Gets the execution context associated with this invocation of the AppHost.
- `log`: [LogFacade](/reference/api/typescript/aspire.hosting/logfacade.md) `get` -- Gets the logger facade used by polyglot callbacks.
- `resource`: [IResource](/reference/api/typescript/aspire.hosting/iresource.md) `get` -- The resource associated with this callback context.
