/// <summary> /// Constructs a lock with the given <paramref name="key"/> (effectively the lock name) and <paramref name="connection"/>. /// </summary> public PostgresDistributedReaderWriterLock(PostgresAdvisoryLockKey key, IDbConnection connection) : this(key, PostgresDistributedLock.CreateInternalLock(key, connection)) { }
/// <summary> /// Constructs a lock with the given <paramref name="key"/> (effectively the lock name), <paramref name="connectionString"/>, /// and <paramref name="options"/> /// </summary> public PostgresDistributedReaderWriterLock(PostgresAdvisoryLockKey key, string connectionString, Action <PostgresConnectionOptionsBuilder>?options = null) : this(key, PostgresDistributedLock.CreateInternalLock(key, connectionString, options)) { }