AzureConstructResourceExtensions.AddAzureConstruct Method

Definition

Adds an Azure construct resource to the application model.

public static Aspire.Hosting.ApplicationModel.IResourceBuilder<Aspire.Hosting.AzureConstructResource> AddAzureConstruct (this Aspire.Hosting.IDistributedApplicationBuilder builder, string name, Action<Aspire.Hosting.ResourceModuleConstruct> configureConstruct);
static member AddAzureConstruct : Aspire.Hosting.IDistributedApplicationBuilder * string * Action<Aspire.Hosting.ResourceModuleConstruct> -> Aspire.Hosting.ApplicationModel.IResourceBuilder<Aspire.Hosting.AzureConstructResource>
<Extension()>
Public Function AddAzureConstruct (builder As IDistributedApplicationBuilder, name As String, configureConstruct As Action(Of ResourceModuleConstruct)) As IResourceBuilder(Of AzureConstructResource)

Parameters

builder
IDistributedApplicationBuilder

The distributed application builder.

name
String

The name of the resource being added.

configureConstruct
Action<ResourceModuleConstruct>

A callback used to configure the construct resource.

Returns

Applies to