private void GetMessages() { IsWorking = true; while (IncomingQueue.Count > 0) { T msg; if (IncomingQueue.TryDequeue(out msg)) { if (WorkingQueue.TryAdd(msg, 0)) { } BrokerInst.QueueNotification(msg); } } IsWorking = false; //BrokerInst.Stop(); }
public void QueueNotification(T notification) { BrokerInst.QueueNotification(notification); }