Beispiel #1
0
        public override void ClearLock(string lockName)
        {
            lock (Locker)
            {
                var isChild = false;
                try
                {
                    //try to release master
                    _master.ClearLock(lockName);

                    //if that succeeds try to release child
                    isChild = true;
                    _child.ClearLock(lockName);
                }
                catch (Exception)
                {
                    //if an error occurs above for the master still attempt to release child
                    if (!isChild)
                    {
                        _child.ClearLock(lockName);
                    }

                    throw;
                }
            }
        }
Beispiel #2
0
 public override void  ClearLock(System.String lockName)
 {
     lock (this)
     {
         lf.ClearLock(lockName);
     }
 }
Beispiel #3
0
 public override void ClearLock(string lockName)
 {
     lock (Locker)
     {
         _master.ClearLock(lockName);
         _child.ClearLock(lockName);
     }
 }
Beispiel #4
0
        public override void ClearLock(string name)
        {
            _lockFactory.ClearLock(name);

            //_realDirectory.ClearLock(name);

            //if (Enabled)
            //{
            //    _tempStorageDir.ClearLock(name);
            //}
        }
Beispiel #5
0
 public override void ClearLock(string name)
 {
     _lockFactory.ClearLock(name);
 }