Sam Cook

Results 29 comments of Sam Cook

Hi, to enable logging you need to pass an instance of `ILoggerFactory` as a parameter when you create your `RedLockFactory`

Nothing specifically documented, but you can see it in the tests (e.g. https://github.com/samcook/RedLock.net/blob/master/RedLockNet.Tests/RedLockTests.cs#L119). You just need to get hold of an instance of `ILoggerFactory` (e.g. from your DI container) and...

@hn1 Are you able to set the logging level to `Debug` and capture the logs from a failed attempt to get a lock? Also what version of RedLock.net and StackExchange.Redis...

> Not related to .NET 7 but the lib fails at aquiring locks if `StackExchange.Redis` is upgraded to any version later than 2.6.48 > > Creating the RedLockFactory by: >...

Thanks @hn1. According to log message you posted, StackExchange.Redis is not able to connect to redis on `localhost:6379` (which is why it's failing to acquire a lock). I'm assuming you...

That's unfortunate, if there is a problem with RedLock I'd like to figure out what it is, but without being able to reproduce it I'm not really able to get...

How are you initialising the `RedLockFactory`? Can you show the configuration you're passing to `RedLockFactory.Create()`?

Interesting, thanks for the suggestion @Tasteful. @hn1 out of interest, we're you using your own instances of ConnectionMultiplexer with RedLock.net, or were you letting it establish its own connection?

If you let RedLock.net manage the Redis connections itself (by creating the `RedLockFactory` with a list of `EndPoint` or `RedLockEndPoint` objects) then specifying a username isn't currently supported (although it...