Freigeben über


RedisBuilderExtensions.WithRedisCommander Method

Definition

Configures a container resource for Redis Commander which is pre-configured to connect to the RedisResource that this method is used on.

public static Aspire.Hosting.ApplicationModel.IResourceBuilder<Aspire.Hosting.ApplicationModel.RedisResource> WithRedisCommander (this Aspire.Hosting.ApplicationModel.IResourceBuilder<Aspire.Hosting.ApplicationModel.RedisResource> builder, Action<Aspire.Hosting.ApplicationModel.IResourceBuilder<Aspire.Hosting.Redis.RedisCommanderResource>>? configureContainer = default, string? containerName = default);
static member WithRedisCommander : Aspire.Hosting.ApplicationModel.IResourceBuilder<Aspire.Hosting.ApplicationModel.RedisResource> * Action<Aspire.Hosting.ApplicationModel.IResourceBuilder<Aspire.Hosting.Redis.RedisCommanderResource>> * string -> Aspire.Hosting.ApplicationModel.IResourceBuilder<Aspire.Hosting.ApplicationModel.RedisResource>
<Extension()>
Public Function WithRedisCommander (builder As IResourceBuilder(Of RedisResource), Optional configureContainer As Action(Of IResourceBuilder(Of RedisCommanderResource)) = Nothing, Optional containerName As String = Nothing) As IResourceBuilder(Of RedisResource)

Parameters

configureContainer
Action<IResourceBuilder<RedisCommanderResource>>

Configuration callback for Redis Commander container resource.

containerName
String

Override the container name used for Redis Commander.

Returns

Remarks

This version of the package defaults to the tag of the container image.

Applies to