Share via


PublishingContext Constructor

Definition

Provides contextual information and services for the publishing process of a distributed application.

public PublishingContext(Aspire.Hosting.ApplicationModel.DistributedApplicationModel model, Aspire.Hosting.DistributedApplicationExecutionContext executionContext, IServiceProvider serviceProvider, Microsoft.Extensions.Logging.ILogger logger, System.Threading.CancellationToken cancellationToken, string outputPath);
new Aspire.Hosting.ApplicationModel.PublishingContext : Aspire.Hosting.ApplicationModel.DistributedApplicationModel * Aspire.Hosting.DistributedApplicationExecutionContext * IServiceProvider * Microsoft.Extensions.Logging.ILogger * System.Threading.CancellationToken * string -> Aspire.Hosting.ApplicationModel.PublishingContext
Public Sub New (model As DistributedApplicationModel, executionContext As DistributedApplicationExecutionContext, serviceProvider As IServiceProvider, logger As ILogger, cancellationToken As CancellationToken, outputPath As String)

Parameters

model
DistributedApplicationModel

The distributed application model to be published.

executionContext
DistributedApplicationExecutionContext

The execution context for the distributed application.

serviceProvider
IServiceProvider

The service provider for dependency resolution.

logger
ILogger

The logger for publishing operations.

cancellationToken
CancellationToken

The cancellation token for the publishing operation.

outputPath
String

The output path for publishing artifacts.

Applies to