# DistributedApplicationExecutionContextOptions Properties

- Package: [Aspire.Hosting](/reference/api/csharp/aspire.hosting.md)
- Type: [DistributedApplicationExecutionContextOptions](/reference/api/csharp/aspire.hosting/distributedapplicationexecutioncontextoptions.md)
- Kind: `Properties`
- Members: `3`

Configuration options and references that need to be exposed to the [DistributedApplicationExecutionContext](/reference/api/csharp/aspire.hosting/distributedapplicationexecutioncontext.md).

## Operation

- Name: `Operation`
- Modifiers: `get`
- Returns: [DistributedApplicationOperation](/reference/api/csharp/aspire.hosting/distributedapplicationoperation.md)
- Source: [GitHub](https://github.com/microsoft/aspire/blob/a3766e994fd2cba86c8ac60b8a80268cab7e6383/src/Aspire.Hosting/DistributedApplicationExecutionContextOptions.cs#L41)

The operation currently being performed by the AppHost.

```csharp
public DistributedApplicationOperation Operation { get; }
```

## PublisherName

- Name: `PublisherName`
- Modifiers: `nullable` `get`
- Returns: `string?`
- Source: [GitHub](https://github.com/microsoft/aspire/blob/a3766e994fd2cba86c8ac60b8a80268cab7e6383/src/Aspire.Hosting/DistributedApplicationExecutionContextOptions.cs#L46)

The name of the publisher if running in publish mode.

```csharp
public string? PublisherName { get; }
```

## ServiceProvider

- Name: `ServiceProvider`
- Modifiers: `nullable` `get; set`
- Returns: `IServiceProvider?`
- Source: [GitHub](https://github.com/microsoft/aspire/blob/a3766e994fd2cba86c8ac60b8a80268cab7e6383/src/Aspire.Hosting/DistributedApplicationExecutionContextOptions.cs)

The `IServiceProvider` for the AppHost.

```csharp
public IServiceProvider? ServiceProvider { get; set; }
```
