Skip to content
DocsTry Aspire
DocsTry

RedisInsightResource.withHostPort

Method
📦 Aspire.Hosting.Redis v13.4.0
interface RedisInsightResource {
// ... omitted for brevity
withHostPort(port: number): RedisInsightResource;
}

Signature

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

Defined on

This method is defined on the following type: