Skip to content
DocsTry Aspire
DocsTry

IResourceBuilder<T> Methods

InterfaceMethods2 members
Defines a builder for creating resources of type T.
WithAnnotation(ResourceAnnotationMutationBehavior)Section titled WithAnnotation(ResourceAnnotationMutationBehavior)virtualIResourceBuilder<T>
Adds an annotation to the resource being built.
public interface IResourceBuilder<T>
{
public virtual IResourceBuilder<T> WithAnnotation<TAnnotation>(
ResourceAnnotationMutationBehavior behavior = ResourceAnnotationMutationBehavior.Append)
{
// ...
}
}
behaviorResourceAnnotationMutationBehavioroptionalThe behavior to use when adding the annotation.
IResourceBuilder<T>The resource builder instance.
WithAnnotation(TAnnotation, ResourceAnnotationMutationBehavior)Section titled WithAnnotation(TAnnotation, ResourceAnnotationMutationBehavior)abstractIResourceBuilder<T>
Adds an annotation to the resource being built.
public interface IResourceBuilder<T>
{
public abstract IResourceBuilder<T> WithAnnotation<TAnnotation>(
TAnnotation annotation,
ResourceAnnotationMutationBehavior behavior = ResourceAnnotationMutationBehavior.Append)
{
// ...
}
}
annotationTAnnotationThe annotation to add.
behaviorResourceAnnotationMutationBehavioroptionalThe behavior to use when adding the annotation.
IResourceBuilder<T>The resource builder instance.