IResourceBuilder<T>
Interface net10.0
Defines a builder for creating resources of type
T. namespace Aspire.Hosting.ApplicationModel;
public interface IResourceBuilder<T> where T : IResource{ // ...}T
: IResource Type Parameters
Section titled Type ParametersT The type of resource to build.
Properties2
Section titled PropertiesApplicationBuilderabstractget Gets the distributed application builder associated with this resource builder.
ResourceabstractgetT Gets the resource of type
T that is being built. Methods2
Section titled MethodsWithAnnotation(ResourceAnnotationMutationBehavior)virtual Adds an annotation to the resource being built.
WithAnnotation(TAnnotation, ResourceAnnotationMutationBehavior)abstract Adds an annotation to the resource being built.