Exemplo n.º 1
0
        public void Process(IMessage message, Action <IMessage> continueWith)
        {
            var queueName = _getQueueNameFromMessage(message);

            _messages.Enqueue(new ScheduledTask()
            {
                Message      = message,
                ContinueWith = continueWith
            },
                              queueName);
        }
Exemplo n.º 2
0
 public void Single_worker_takes_from_single_queue()
 {
     _sut.Enqueue("a", "q1");
     Assert.IsTrue(_sut.TryDequeue("w1", out _result));
     Assert.AreEqual("a", _result);
 }