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(); }
public void Enqueue(T data) { Queue.Enqueue(data); DataAvailableEvent.Set(); }