Esempio n. 1
0
 private void GetTaskSpan()
 {
     if (_currentTaskBuffer.Head.Next != null)
     {
         _taskBuffer.Append(_currentTaskBuffer);
         _currentTaskBuffer = new SingleLinks <Task <bool> >();
     }
 }
 private void GetTaskSpan()
 {
     LockSend();
     if (_currentTaskBuffer.Count != 0)
     {
         _taskBuffer.Append(_currentTaskBuffer);
         _currentTaskBuffer = new SingleLinks <Task <bool> >();
     }
     ReleaseSend();
 }
 public NewRedisClient9()
 {
     _currentTaskBuffer = new SingleLinks <Task <bool> >();
     _taskBuffer        = new SingleLinks <Task <bool> >();
     _resultBuffer      = new SingleLinks <bool>();
     _protocalStart     = (byte)43;
     _handlerResultTask = new TaskCompletionSource <int>();
     _tempResultLink    = new SingleLinks <bool>();
     ResultDispatcher();
 }