ManifestPublishingContext.WriteContainerAsync(ContainerResource) 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 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.