# DistributedApplicationExecutionContext

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

Exposes the global contextual information for this invocation of the AppHost.

## Definition

```go
type DistributedApplicationExecutionContext interface{}
```

## Properties

- `IsPublishMode`: `bool` `get` -- Returns true if the current operation is publishing.
- `IsRunMode`: `bool` `get` -- Returns true if the current operation is running.
- `Operation`: [`DistributedApplicationOperation`](/reference/api/go/aspire.hosting/distributedapplicationoperation.md) `get` -- The operation currently being performed by the AppHost.
- `PublisherName`: `string` `get/set` -- The name of the publisher that is being used if `Operation` is set to `Publish`.
- `RunConfiguration`: [`*RunConfiguration`](/reference/api/go/aspire.hosting/runconfiguration.md) `get` -- Describes how the AppHost is being run. Only meaningful when `Operation` is `Run`; otherwise every aspect holds its default value.
- `ServiceProvider`: [`ServiceProvider`](/reference/api/go/aspire.hosting/serviceprovider.md) `get` -- The `IServiceProvider` for the AppHost.
- `Services`: [`ServiceProvider`](/reference/api/go/aspire.hosting/serviceprovider.md) `get` -- The `IServiceProvider` for the AppHost.
