# ManifestPublishingContext Constructors

- Package: [Aspire.Hosting](/reference/api/csharp/aspire.hosting.md)
- Type: [ManifestPublishingContext](/reference/api/csharp/aspire.hosting/manifestpublishingcontext.md)
- Kind: `Constructors`
- Members: `1`

Contextual information used for manifest publishing during this execution of the AppHost.

## ManifestPublishingContext(DistributedApplicationExecutionContext, string, Utf8JsonWriter, CancellationToken)

- Name: `Constructor(DistributedApplicationExecutionContext, string, Utf8JsonWriter, CancellationToken)`
- Source: [GitHub](https://github.com/microsoft/aspire/blob/bd20f904cde09ecb9c9ae5116a6f13614bf2d7c2/src/Aspire.Hosting/Publishing/ManifestPublishingContext.cs#L22-L54)

Contextual information used for manifest publishing during this execution of the AppHost.

```csharp
public sealed class ManifestPublishingContext
{
    public ManifestPublishingContext(
        DistributedApplicationExecutionContext executionContext,
        string manifestPath,
        Utf8JsonWriter writer,
        CancellationToken cancellationToken = default(CancellationToken))
    {
        // ...
    }
}
```

## Parameters

- `executionContext` ([DistributedApplicationExecutionContext](/reference/api/csharp/aspire.hosting/distributedapplicationexecutioncontext.md))
  Global contextual information for this invocation of the AppHost.
- `manifestPath` (`string`)
  Manifest path passed in for this invocation of the AppHost.
- `writer` (`Utf8JsonWriter`)
  JSON writer used to writing the manifest.
- `cancellationToken` (`CancellationToken`) `optional`
  Cancellation token for this operation.
