withResourcePort

Method
📦 CommunityToolkit.Aspire.Hosting.Logto v13.6.1
interface LogtoResource {
// ... omitted for brevity
withResourcePort(
port?: number,
adminPort?: number): LogtoResource;
}

Signature

methodwithResourcePortbuilder
Configures HTTP endpoints for the given Logto resource builder with specified port settings.
withResourcePort(
port?: number,
adminPort?: number): LogtoResource
portnumberoptionalThe host port to be configured for the primary endpoint. If `null`, Aspire will assign a random host port.
adminPortnumberoptionalThe host port to be configured for the administrative endpoint. If `null`, Aspire will assign a random host port.
LogtoResource

Applies to

This method applies to the following types: