Exemplo n.º 1
0
 public void SetListenerCallback(ReadQueueHandler callback)
 {
     consumer                   = thisExch.CreateConsumer();
     consumer.Received         += LocalCallback;
     SubscribedMessageReceived += callback;
     thisExch.channel.BasicConsume(thisConnDetail.queueName, true, consumer);
 }
Exemplo n.º 2
0
        private void BaseInit(ConnectionDetail cd)
        {
            thisConnDetail = cd.Copy();
            if (thisConnDetail.queueName == "")
            {
                thisConnDetail = thisConnDetail.UpdateQueueDetail(System.Guid.NewGuid().ToString(), null);
            }

            messagesSent   = 0;
            consumer       = null;
            clientCallback = null;
        }