Exemplo n.º 1
0
 public void Dispose()
 {
     if (_owner != null)
     {
         _owner.ReleaseLock();
         _owner = null;
     }
 }
Exemplo n.º 2
0
 /// <summary>
 /// Instantiates a lock token with the specified owner.
 /// </summary>
 /// <param name="owner"></param>
 public LockToken(ILockSynchronization owner)
 {
     _owner = owner;
 }