Exemplo n.º 1
0
 ///-------------------------------------------------------------------------------------------------
 /// <summary>
 ///  Performs application-defined tasks associated with freeing, releasing, or resetting unmanaged
 ///  resources.
 /// </summary>
 ///-------------------------------------------------------------------------------------------------
 public void Dispose()
 {
     if (_lockInfo != null)
     {
         _lockManager.ReleaseLock(_lockInfo);
     }
     _lockInfo    = null;
     _lockManager = null;
 }
Exemplo n.º 2
0
 internal LockWrapper(LockManager lockManager = null, LockInfo lockInfo = null)
 {
     _lockInfo    = lockInfo;
     _lockManager = lockManager;
 }