Example #1
0
 public RedLockConfiguration(RedLockConnectionProvider connectionProvider, ILoggerFactory loggerFactory = null)
 {
     this.ConnectionProvider = connectionProvider ?? throw new ArgumentNullException(nameof(connectionProvider), "Connection provider must not be null");
     this.LoggerFactory      = loggerFactory;
 }
Example #2
0
 public RedLockConfiguration(RedLockConnectionProvider connectionProvider)
 {
     this.ConnectionProvider = connectionProvider ?? throw new ArgumentNullException(nameof(connectionProvider), "Connection provider must not be null");
 }