public void Release() { if (!IsReleased && !IsExpired) { _DistributedLockManager?.ReleaseDistributedLockAsync(this).Wait(); IsReleased = true; } }
public void Release() { if (!IsReleased && !IsExpired) { _DistributedLockManager?.ReleaseDistributedLockAsync(this).Wait(); IsReleased = true; } }