withSerializedAnnotation

Method
📦 Aspire.Hosting v17.0.0
interface ContainerResource {
// ... omitted for brevity
withSerializedAnnotation(
annotationId: string,
json: string): IResource;
}

Signature

methodwithSerializedAnnotation
Stores a serialized ATS annotation payload on a resource, replacing any existing annotation with the same ID.
withSerializedAnnotation(
annotationId: string,
json: string): IResource
annotationIdstringThe stable annotation identifier.
jsonstringThe serialized JSON payload.
IResource

Applies to

This method applies to the following types: