共用方式為


IProviderConfiguration.ConfigureResource<T> Method

Definition

Configures the provided resource.

public void ConfigureResource<T> (Aspire.Hosting.ApplicationModel.IResourceBuilder<T> resourceBuilder, string configSectionPath) where T : Aspire.Hosting.ApplicationModel.IResourceWithEnvironment;
abstract member ConfigureResource : Aspire.Hosting.ApplicationModel.IResourceBuilder<'T (requires 'T :> Aspire.Hosting.ApplicationModel.IResourceWithEnvironment)> * string -> unit (requires 'T :> Aspire.Hosting.ApplicationModel.IResourceWithEnvironment)
Public Sub ConfigureResource(Of T As IResourceWithEnvironment) (resourceBuilder As IResourceBuilder(Of T), configSectionPath As String)

Type Parameters

T

The underlying resource builder type.

Parameters

resourceBuilder
IResourceBuilder<T>

The resource builder.

configSectionPath
String

The name of the configuration section which this value is being added to.

Applies to