Exemplo n.º 1
0
 public void Dispose()
 {
     if (_pump != null)
     {
         _pump.Remove(this);
     }
     _pump     = null;
     _callback = null;
     _handle   = null;
     _pool.Release(this);
 }
 public void Dispose()
 {
     if (_pump != null)
     {
         _pump.Remove(this);
     }
     _pump     = null;
     _callback = null;
     if (_handle is IPooledYieldInstruction)
     {
         (_handle as IPooledYieldInstruction).Dispose();
     }
     _handle = null;
     _pool.Release(this);
 }