Exemplo n.º 1
0
 protected override void Dispose(bool explicitDisposing)
 {
     if (explicitDisposing)
     {
         if (_waitStateHolder != null)
         {
             _waitStateHolder.Dispose();
             _waitStateHolder = null;
         }
     }
     base.Dispose(explicitDisposing);
 }
Exemplo n.º 2
0
 protected override void Dispose(bool explicitDisposing)
 {
     // ProcessWaitState will dispose the handle
     this.SafeWaitHandle = null;
     if (explicitDisposing)
     {
         if (_waitStateHolder != null)
         {
             _waitStateHolder.Dispose();
             _waitStateHolder = null;
         }
     }
     base.Dispose(explicitDisposing);
 }