protected override void Dispose(bool explicitDisposing)
 {
     if (explicitDisposing)
     {
         if (_waitStateHolder != null)
         {
             _waitStateHolder.Dispose();
             _waitStateHolder = null;
         }
     }
     base.Dispose(explicitDisposing);
 }
Example #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);
 }