Skip to content
DocsTry Aspire
DocsTry

withHostPort

Method
📦 CommunityToolkit.Aspire.Hosting.Elasticsearch.Extensions v13.4.0
interface ElasticvueContainerResource {
// ... omitted for brevity
withHostPort(port: number): ElasticvueContainerResource;
}

Signature

methodwithHostPortbuilder
Configures the host port that the Elasticvue resource is exposed on instead of using randomly assigned port.
withHostPort(port: number): ElasticvueContainerResource
portnumber
ElasticvueContainerResource

Applies to

This method applies to the following types: