Share via


ManifestPublishingContext.WriteContainerAsync(ContainerResource) Method

Definition

Writes JSON elements to the manifest which represent a container resource.

public System.Threading.Tasks.Task WriteContainerAsync (Aspire.Hosting.ApplicationModel.ContainerResource container);
member this.WriteContainerAsync : Aspire.Hosting.ApplicationModel.ContainerResource -> System.Threading.Tasks.Task
Public Function WriteContainerAsync (container As ContainerResource) As Task

Parameters

container
ContainerResource

The container resource to written to the manifest.

Returns

Exceptions

Thrown if the container resource does not contain a ContainerImageAnnotation.

Applies to