public void QueueData(byte[] data)
        {
            if (!Started)
            {
                throw new InvalidOperationException("Unable to queue element: Queue processing is not running");
            }

            Logger.Trace("Queue new element {0}", data.GetHashCode());

            DataQueue.Enqueue(data);
            DataAvailableEvent.Set();
        }
Exemplo n.º 2
0
 public void Enqueue(T data)
 {
     Queue.Enqueue(data);
     DataAvailableEvent.Set();
 }