AspireRedisClientBuilder Constructor
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.
Provides a builder for configuring Redis client services using StackExchange.Redis in an Aspire application.
public AspireRedisClientBuilder(Microsoft.Extensions.Hosting.IHostApplicationBuilder hostBuilder, Aspire.StackExchange.Redis.StackExchangeRedisSettings settings, string? serviceKey);
new Aspire.StackExchange.Redis.AspireRedisClientBuilder : Microsoft.Extensions.Hosting.IHostApplicationBuilder * Aspire.StackExchange.Redis.StackExchangeRedisSettings * string -> Aspire.StackExchange.Redis.AspireRedisClientBuilder
Public Sub New (hostBuilder As IHostApplicationBuilder, settings As StackExchangeRedisSettings, serviceKey As String)
Parameters
- hostBuilder
- IHostApplicationBuilder
The IHostApplicationBuilder with which services are being registered.
- settings
- StackExchangeRedisSettings
The StackExchangeRedisSettings to configure the Redis client.
- serviceKey
- String
The service key used to register the StackExchange.Redis.IConnectionMultiplexer service, if any.