Skip to content
Docs Try Aspire

YarpResource.withHostHttpsPort

Method
📦 Aspire.Hosting.Yarp v13.2.0-preview.1.26159.1
interface YarpResource {
// ... omitted for brevity
withHostHttpsPort(port: number): YarpResource;
}

Signature

method withHostHttpsPort builder
Configures the host HTTPS port that the YARP resource is exposed on instead of using randomly assigned port.
withHostHttpsPort(port: number): YarpResource
port number
YarpResource

Defined on

This method is defined on the following type: