diff --git a/Directory.Build.props b/Directory.Build.props index 0cca271..79c4ddc 100644 --- a/Directory.Build.props +++ b/Directory.Build.props @@ -1,7 +1,7 @@ - 2.3.0.0 - 2.3.0 + 2.3.1.0 + 2.3.1 $(Version) Sam Cook @@ -17,6 +17,7 @@ Note: RedLock 2.2.0+ requires StackExchange.Redis 2.0+ - if you need to use StackExchange.Redis 1.x please continue to use RedLock.net 2.1.0. + 2.3.1 - Fix MissingMethodException on RedLockFactory.Create() in 2.3.0. 2.3.0 - Add support for async unlocking. Add configurable retry settings. Fix rare failure to unlock on dispose issue. 2.2.0 - Update to StackExchange.Redis 2.0. Switch to a single strong named package and adjust platform targets to match StackExchange.Redis 2.0. 2.1.0 - Add connection change events and more detailed lock status information diff --git a/RedLockNet.SERedis/RedLockFactory.cs b/RedLockNet.SERedis/RedLockFactory.cs index 2dba2d0..6d82ba2 100644 --- a/RedLockNet.SERedis/RedLockFactory.cs +++ b/RedLockNet.SERedis/RedLockFactory.cs @@ -21,7 +21,15 @@ public class RedLockFactory : IDistributedLockFactory, IDisposable /// /// Create a RedLockFactory using a list of RedLockEndPoints (ConnectionMultiplexers will be internally managed by RedLock.net) /// - public static RedLockFactory Create(IList endPoints, ILoggerFactory loggerFactory = null, RedLockRetryConfiguration retryConfiguration = null) + public static RedLockFactory Create(IList endPoints, ILoggerFactory loggerFactory = null) + { + return Create(endPoints, null, loggerFactory); + } + + /// + /// Create a RedLockFactory using a list of RedLockEndPoints (ConnectionMultiplexers will be internally managed by RedLock.net) + /// + public static RedLockFactory Create(IList endPoints, RedLockRetryConfiguration retryConfiguration, ILoggerFactory loggerFactory = null) { var configuration = new RedLockConfiguration(endPoints, loggerFactory) { @@ -33,7 +41,15 @@ public static RedLockFactory Create(IList endPoints, ILoggerFac /// /// Create a RedLockFactory using existing StackExchange.Redis ConnectionMultiplexers /// - public static RedLockFactory Create(IList existingMultiplexers, ILoggerFactory loggerFactory = null, RedLockRetryConfiguration retryConfiguration = null) + public static RedLockFactory Create(IList existingMultiplexers, ILoggerFactory loggerFactory = null) + { + return Create(existingMultiplexers, null, loggerFactory); + } + + /// + /// Create a RedLockFactory using existing StackExchange.Redis ConnectionMultiplexers + /// + public static RedLockFactory Create(IList existingMultiplexers, RedLockRetryConfiguration retryConfiguration, ILoggerFactory loggerFactory = null) { var configuration = new RedLockConfiguration( new ExistingMultiplexersRedLockConnectionProvider