次の方法で共有


MySqlBuilderExtensions.WithHostPort Method

Definition

Configures the host port that the PGAdmin resource is exposed on instead of using randomly assigned port.

public static Aspire.Hosting.ApplicationModel.IResourceBuilder<Aspire.Hosting.MySql.PhpMyAdminContainerResource> WithHostPort (this Aspire.Hosting.ApplicationModel.IResourceBuilder<Aspire.Hosting.MySql.PhpMyAdminContainerResource> builder, int? port);
static member WithHostPort : Aspire.Hosting.ApplicationModel.IResourceBuilder<Aspire.Hosting.MySql.PhpMyAdminContainerResource> * Nullable<int> -> Aspire.Hosting.ApplicationModel.IResourceBuilder<Aspire.Hosting.MySql.PhpMyAdminContainerResource>
<Extension()>
Public Function WithHostPort (builder As IResourceBuilder(Of PhpMyAdminContainerResource), port As Nullable(Of Integer)) As IResourceBuilder(Of PhpMyAdminContainerResource)

Parameters

builder
IResourceBuilder<PhpMyAdminContainerResource>

The resource builder for PGAdmin.

port
Nullable<Int32>

The port to bind on the host. If null is used, a random port will be assigned.

Returns

The resource builder for PGAdmin.

Applies to