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