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