IResource.withSerializedAnnotation

Method
📦 Aspire.Hosting v17.0.0
interface IResource {
// ... 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

Defined on

This method is defined on the following type: