Skip to content
DocsTry Aspire
DocsTry

ResourceAnnotationMutationBehavior

Enumnet8.0
📦 Aspire.Hosting v13.4.0
Specifies behavior of the IResourceBuilder`1.WithAnnotation method when adding an annotation to the IResource.Annotations collection of a resource.
namespace Aspire.Hosting.ApplicationModel;
public enum ResourceAnnotationMutationBehavior
Append= 0
Append the annotation to the collection. Existing annotations will be kept.
Replace= 1
Replace the existing annotation. The existing annotation will be removed.