# DistributedApplicationExecutionContext

- 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 DistributedApplicationExecutionContext {
  readonly isPublishMode: boolean;
  readonly isRunMode: boolean;
  readonly operation: DistributedApplicationOperation;
  publisherName: string;
  readonly serviceProvider: IServiceProvider;
}
```

## Properties

- `isPublishMode`: `boolean` `get` -- Gets the IsPublishMode property
- `isRunMode`: `boolean` `get` -- Gets the IsRunMode property
- `operation`: [DistributedApplicationOperation](/reference/api/typescript/aspire.hosting/distributedapplicationoperation.md) `get` -- Gets the Operation property
- `publisherName`: `string` `get - set` -- Gets the PublisherName property
- `serviceProvider`: [IServiceProvider](/reference/api/typescript/aspire.hosting/iserviceprovider.md) `get` -- Gets the ServiceProvider property
