RedisBuilderExtensions.WithRedisInsight Method
Definition
Important
Some information relates to prerelease product that may be substantially modified before it’s released. Microsoft makes no warranties, express or implied, with respect to the information provided here.
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
- builder
- IResourceBuilder<RedisResource>
The IResourceBuilder<T> for the RedisResource.
- 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.