Aspirerelease/17.0
Watch Aspire live streamsDocsTry Aspire

WithResourcePort

Method
📦 CommunityToolkit.Aspire.Hosting.Logto v13.6.1
func (LogtoResource) WithResourcePort(options ...*WithResourcePortOptions) LogtoResource

Signature

methodWithResourcePortbuilder
Configures HTTP endpoints for the given Logto resource builder with specified port settings.
WithResourcePort(options ...*WithResourcePortOptions) LogtoResource
options...*WithResourcePortOptionsOptional settings, described under Options.

Optional parameters are passed in a trailing options ...*WithResourcePortOptions argument.

Port*float64The host port to be configured for the primary endpoint. If null, Aspire will assign a random host port.
AdminPort*float64The host port to be configured for the administrative endpoint. If null, Aspire will assign a random host port.
LogtoResource

The updated resource builder with the configured HTTP endpoints.

Returns a handle; failures surface later via Err().

Applies to

This method applies to the following types: