# 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/bd20f904cde09ecb9c9ae5116a6f13614bf2d7c2/src/Aspire.Hosting/DistributedApplicationExecutionContextOptions.cs#L40)

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/bd20f904cde09ecb9c9ae5116a6f13614bf2d7c2/src/Aspire.Hosting/DistributedApplicationExecutionContextOptions.cs#L45)

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/bd20f904cde09ecb9c9ae5116a6f13614bf2d7c2/src/Aspire.Hosting/DistributedApplicationExecutionContextOptions.cs)

The `IServiceProvider` for the AppHost.

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