private async Task CheckIsStillLocked() { if (Status != DistributedLockStatus.Acquired) { return; } if (!await _lockManager.CheckIsStillLocked(_settings)) { Status = DistributedLockStatus.Lost; } }
private async Task CheckIsStillLocked() { if (Status != DistributedLockStatus.Acquired) { return; } if (!await _lockManager.CheckIsStillLocked(_settings)) { Status = DistributedLockStatus.Lost; } }