共用方式為


DistributedApplicationFactory.OnBuilderCreating Method

Definition

Called when the application builder is being created.

protected virtual void OnBuilderCreating (Aspire.Hosting.DistributedApplicationOptions applicationOptions, Microsoft.Extensions.Hosting.HostApplicationBuilderSettings hostOptions);
abstract member OnBuilderCreating : Aspire.Hosting.DistributedApplicationOptions * Microsoft.Extensions.Hosting.HostApplicationBuilderSettings -> unit
override this.OnBuilderCreating : Aspire.Hosting.DistributedApplicationOptions * Microsoft.Extensions.Hosting.HostApplicationBuilderSettings -> unit
Protected Overridable Sub OnBuilderCreating (applicationOptions As DistributedApplicationOptions, hostOptions As HostApplicationBuilderSettings)

Parameters

applicationOptions
DistributedApplicationOptions

The application options.

hostOptions
HostApplicationBuilderSettings

The host builder options.

Applies to