Closed weare8 closed 4 years ago
Actually I believe I figured this out with the below. This is not a RedLock issue, more of setting up Sentinel configuration options and the ConnectionMultiplexer and passing the below for RedLock (pending more testing).
services.AddSingleton<IDistributedLockFactory>(provider =>
RedLockFactory.Create(new List<RedLockMultiplexer>
{
new RedLockMultiplexer(provider.GetRequiredService<ConnectionMultiplexer>())
})
);
Having built a 3 node Redis cluster with Sentinel in front and using StackExchange.Redis with the below configuration.
Configuring the DI container.
When I start the ASP.NET Core API 3.1 I get the below messages and it just hangs.
All nugget packages are the latest.