PublishingContext Constructor
Definition
Important
Some information relates to prerelease product that may be substantially modified before it’s released. Microsoft makes no warranties, express or implied, with respect to the information provided here.
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
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.