AspireRedisClientBuilder Constructors
Class Constructors 1 member
Provides a builder for configuring Redis client services using StackExchange.Redis in an Aspire application.
Constructor(IHostApplicationBuilder, StackExchangeRedisSettings, string?) Section titled Constructor(IHostApplicationBuilder, StackExchangeRedisSettings, string?) Provides a builder for configuring Redis client services using StackExchange.Redis in an Aspire application.
public sealed class AspireRedisClientBuilder{ public AspireRedisClientBuilder( IHostApplicationBuilder hostBuilder, StackExchangeRedisSettings settings, string? serviceKey) { // ... }}Parameters
hostBuilder IHostApplicationBuilder The Hosting.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 Redis.IConnectionMultiplexer service, if any.