Skip to content

Commit

Permalink
Fix for MissingMethodException due to method signature change in RedL…
Browse files Browse the repository at this point in the history
…ockFactory.Create.

Bump version to 2.3.1.
  • Loading branch information
samcook committed Aug 27, 2021
1 parent 02995df commit 9d5e5c2
Show file tree
Hide file tree
Showing 2 changed files with 21 additions and 4 deletions.
5 changes: 3 additions & 2 deletions Directory.Build.props
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
<Project>
<PropertyGroup>
<AssemblyVersion>2.3.0.0</AssemblyVersion>
<Version>2.3.0</Version>
<AssemblyVersion>2.3.1.0</AssemblyVersion>
<Version>2.3.1</Version>
<FileVersion>$(Version)</FileVersion>
<Authors>Sam Cook</Authors>
<Company />
Expand All @@ -17,6 +17,7 @@
<PackageReleaseNotes>
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
Expand Down
20 changes: 18 additions & 2 deletions RedLockNet.SERedis/RedLockFactory.cs
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,15 @@ public class RedLockFactory : IDistributedLockFactory, IDisposable
/// <summary>
/// Create a RedLockFactory using a list of RedLockEndPoints (ConnectionMultiplexers will be internally managed by RedLock.net)
/// </summary>
public static RedLockFactory Create(IList<RedLockEndPoint> endPoints, ILoggerFactory loggerFactory = null, RedLockRetryConfiguration retryConfiguration = null)
public static RedLockFactory Create(IList<RedLockEndPoint> endPoints, ILoggerFactory loggerFactory = null)
{
return Create(endPoints, null, loggerFactory);
}

/// <summary>
/// Create a RedLockFactory using a list of RedLockEndPoints (ConnectionMultiplexers will be internally managed by RedLock.net)
/// </summary>
public static RedLockFactory Create(IList<RedLockEndPoint> endPoints, RedLockRetryConfiguration retryConfiguration, ILoggerFactory loggerFactory = null)
{
var configuration = new RedLockConfiguration(endPoints, loggerFactory)
{
Expand All @@ -33,7 +41,15 @@ public static RedLockFactory Create(IList<RedLockEndPoint> endPoints, ILoggerFac
/// <summary>
/// Create a RedLockFactory using existing StackExchange.Redis ConnectionMultiplexers
/// </summary>
public static RedLockFactory Create(IList<RedLockMultiplexer> existingMultiplexers, ILoggerFactory loggerFactory = null, RedLockRetryConfiguration retryConfiguration = null)
public static RedLockFactory Create(IList<RedLockMultiplexer> existingMultiplexers, ILoggerFactory loggerFactory = null)
{
return Create(existingMultiplexers, null, loggerFactory);
}

/// <summary>
/// Create a RedLockFactory using existing StackExchange.Redis ConnectionMultiplexers
/// </summary>
public static RedLockFactory Create(IList<RedLockMultiplexer> existingMultiplexers, RedLockRetryConfiguration retryConfiguration, ILoggerFactory loggerFactory = null)
{
var configuration = new RedLockConfiguration(
new ExistingMultiplexersRedLockConnectionProvider
Expand Down

0 comments on commit 9d5e5c2

Please sign in to comment.