AzureConstructResourceExtensions.AddAzureConstruct Method
Definition
Important
Some information relates to prerelease product that may be substantially modified before it’s released. Microsoft makes no warranties, express or implied, with respect to the information provided here.
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.