AzurePublishingContext.WriteModelAsync Method
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.
Writes the specified distributed application model to the output path using Bicep templates.
public System.Threading.Tasks.Task WriteModelAsync(Aspire.Hosting.ApplicationModel.DistributedApplicationModel model, Aspire.Hosting.Azure.AzureEnvironmentResource environment, System.Threading.CancellationToken cancellationToken = default);
member this.WriteModelAsync : Aspire.Hosting.ApplicationModel.DistributedApplicationModel * Aspire.Hosting.Azure.AzureEnvironmentResource * System.Threading.CancellationToken -> System.Threading.Tasks.Task
Public Function WriteModelAsync (model As DistributedApplicationModel, environment As AzureEnvironmentResource, Optional cancellationToken As CancellationToken = Nothing) As Task
Parameters
The distributed application model to write to the output path.
- environment
- AzureEnvironmentResource
The Azure environment resource.
- cancellationToken
- CancellationToken
A token to monitor for cancellation requests.
Returns
A task that represents the async operation.