共用方式為


AzureConstructResourceExtensions.ConfigureConstruct<T> Method

Definition

Configures the Azure construct resource.

public static Aspire.Hosting.ApplicationModel.IResourceBuilder<T> ConfigureConstruct<T> (this Aspire.Hosting.ApplicationModel.IResourceBuilder<T> builder, Action<Aspire.Hosting.ResourceModuleConstruct> configure) where T : Aspire.Hosting.AzureConstructResource;
static member ConfigureConstruct : Aspire.Hosting.ApplicationModel.IResourceBuilder<'T (requires 'T :> Aspire.Hosting.AzureConstructResource)> * Action<Aspire.Hosting.ResourceModuleConstruct> -> Aspire.Hosting.ApplicationModel.IResourceBuilder<'T (requires 'T :> Aspire.Hosting.AzureConstructResource)> (requires 'T :> Aspire.Hosting.AzureConstructResource)
<Extension()>
Public Function ConfigureConstruct(Of T As AzureConstructResource) (builder As IResourceBuilder(Of T), configure As Action(Of ResourceModuleConstruct)) As IResourceBuilder(Of T)

Type Parameters

T

Type of the CDK resource.

Parameters

builder
IResourceBuilder<T>

The resource builder.

configure
Action<ResourceModuleConstruct>

The configuration callback.

Returns

The resource builder.

Applies to