AzurePublishingContext Methods
ClassMethods1 member
Represents a context for publishing Azure bicep templates for a distributed application.
WriteModelAsync(DistributedApplicationModel, AzureEnvironmentResource, CancellationToken) Section titled WriteModelAsync(DistributedApplicationModel, AzureEnvironmentResource, CancellationToken)Task Writes the specified distributed application model to the output path using Bicep templates.
public sealed class AzurePublishingContext{ public Task WriteModelAsync( DistributedApplicationModel model, AzureEnvironmentResource environment, CancellationToken cancellationToken = default(CancellationToken)) { // ... }}Parameters
modelDistributedApplicationModel The distributed application model to write to the output path.environmentAzurecancellationToken CancellationToken optionalA token to monitor for cancellation requests.Returns
TaskA task that represents the async operation.