共用方式為


RedisBuilderExtensions.WithRedisInsight Method

Definition

Configures a container resource for Redis Insight 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> WithRedisInsight (this Aspire.Hosting.ApplicationModel.IResourceBuilder<Aspire.Hosting.ApplicationModel.RedisResource> builder, Action<Aspire.Hosting.ApplicationModel.IResourceBuilder<Aspire.Hosting.Redis.RedisInsightResource>>? configureContainer = default, string? containerName = default);
static member WithRedisInsight : Aspire.Hosting.ApplicationModel.IResourceBuilder<Aspire.Hosting.ApplicationModel.RedisResource> * Action<Aspire.Hosting.ApplicationModel.IResourceBuilder<Aspire.Hosting.Redis.RedisInsightResource>> * string -> Aspire.Hosting.ApplicationModel.IResourceBuilder<Aspire.Hosting.ApplicationModel.RedisResource>
<Extension()>
Public Function WithRedisInsight (builder As IResourceBuilder(Of RedisResource), Optional configureContainer As Action(Of IResourceBuilder(Of RedisInsightResource)) = Nothing, Optional containerName As String = Nothing) As IResourceBuilder(Of RedisResource)

Parameters

configureContainer
Action<IResourceBuilder<RedisInsightResource>>

Configuration callback for Redis Insight container resource.

containerName
String

Override the container name used for Redis Insight.

Returns

Remarks

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

Applies to