7 writes to ConnectionMultiplexerFactory
Aspire.StackExchange.Redis.DistributedCaching (5)
AspireRedisDistributedCacheExtensions.cs (5)
44options.ConnectionMultiplexerFactory = () => Task.FromResult(sp.GetRequiredService<IConnectionMultiplexer>()); 74options.ConnectionMultiplexerFactory = () => Task.FromResult(sp.GetRequiredKeyedService<IConnectionMultiplexer>(name)); 108options.ConnectionMultiplexerFactory = () => Task.FromResult(sp.GetRequiredService<IConnectionMultiplexer>()); 112options.ConnectionMultiplexerFactory = () => Task.FromResult(sp.GetRequiredKeyedService<IConnectionMultiplexer>(key)); 168options.ConnectionMultiplexerFactory = () => Task.FromResult(sp.GetRequiredKeyedService<IConnectionMultiplexer>(builder.ServiceKey));
Microsoft.Extensions.Caching.Hybrid.Tests (1)
RedisTests.cs (1)
36options.ConnectionMultiplexerFactory = () => Task.FromResult(redis);
Microsoft.Extensions.Caching.MicroBenchmarks (1)
DistributedCacheBenchmarks.cs (1)
64options.ConnectionMultiplexerFactory = () => Task.FromResult<IConnectionMultiplexer>(multiplexer);
4 references to ConnectionMultiplexerFactory
Microsoft.Extensions.Caching.StackExchangeRedis (4)
RedisCache.cs (4)
292if (_options.ConnectionMultiplexerFactory is null) 298connection = _options.ConnectionMultiplexerFactory().GetAwaiter().GetResult(); 336if (_options.ConnectionMultiplexerFactory is null) 342connection = await _options.ConnectionMultiplexerFactory().ConfigureAwait(false);