Beispiel #1
0
 private void PoolWriteContext(WriteContext writeContext)
 {
     // called inside _contextLock
     if (_writeContextPool.Count < _maxPooledWriteContexts)
     {
         writeContext.Reset();
         _writeContextPool.Enqueue(writeContext);
     }
 }
 private void PoolWriteContext(WriteContext writeContext)
 {
     // called inside _contextLock
     if (_writeContextPool.Count < _maxPooledWriteContexts)
     {
         writeContext.Reset();
         _writeContextPool.Enqueue(writeContext);
     }
 }