Udostępnij za pośrednictwem


RedisBuilderExtensions.WithHostPort Method

Definition

Overloads

WithHostPort(IResourceBuilder<RedisCommanderResource>, Nullable<Int32>)

Configures the host port that the Redis Commander resource is exposed on instead of using randomly assigned port.

WithHostPort(IResourceBuilder<RedisInsightResource>, Nullable<Int32>)

Configures the host port that the Redis Insight resource is exposed on instead of using randomly assigned port.

WithHostPort(IResourceBuilder<RedisCommanderResource>, Nullable<Int32>)

Source:
RedisBuilderExtensions.cs
Source:
RedisBuilderExtensions.cs

Configures the host port that the Redis Commander resource is exposed on instead of using randomly assigned port.

public static Aspire.Hosting.ApplicationModel.IResourceBuilder<Aspire.Hosting.Redis.RedisCommanderResource> WithHostPort (this Aspire.Hosting.ApplicationModel.IResourceBuilder<Aspire.Hosting.Redis.RedisCommanderResource> builder, int? port);
static member WithHostPort : Aspire.Hosting.ApplicationModel.IResourceBuilder<Aspire.Hosting.Redis.RedisCommanderResource> * Nullable<int> -> Aspire.Hosting.ApplicationModel.IResourceBuilder<Aspire.Hosting.Redis.RedisCommanderResource>
<Extension()>
Public Function WithHostPort (builder As IResourceBuilder(Of RedisCommanderResource), port As Nullable(Of Integer)) As IResourceBuilder(Of RedisCommanderResource)

Parameters

builder
IResourceBuilder<RedisCommanderResource>

The resource builder for Redis Commander.

port
Nullable<Int32>

The port to bind on the host. If null is used random port will be assigned.

Returns

The resource builder for RedisCommander.

Applies to

WithHostPort(IResourceBuilder<RedisInsightResource>, Nullable<Int32>)

Source:
RedisBuilderExtensions.cs

Configures the host port that the Redis Insight resource is exposed on instead of using randomly assigned port.

public static Aspire.Hosting.ApplicationModel.IResourceBuilder<Aspire.Hosting.Redis.RedisInsightResource> WithHostPort (this Aspire.Hosting.ApplicationModel.IResourceBuilder<Aspire.Hosting.Redis.RedisInsightResource> builder, int? port);
static member WithHostPort : Aspire.Hosting.ApplicationModel.IResourceBuilder<Aspire.Hosting.Redis.RedisInsightResource> * Nullable<int> -> Aspire.Hosting.ApplicationModel.IResourceBuilder<Aspire.Hosting.Redis.RedisInsightResource>
<Extension()>
Public Function WithHostPort (builder As IResourceBuilder(Of RedisInsightResource), port As Nullable(Of Integer)) As IResourceBuilder(Of RedisInsightResource)

Parameters

builder
IResourceBuilder<RedisInsightResource>

The resource builder for Redis Insight.

port
Nullable<Int32>

The port to bind on the host. If null is used random port will be assigned.

Returns

The resource builder for RedisInsight.

Applies to