Example #1
0
        public void ConsumeAsync(AMQPConsumer consumer) {
            if (!IsConnected) Connect();

            var thread = new Thread(o => consumer.Start(this));
            thread.Start();

            while (!thread.IsAlive)
                Thread.Sleep(1);
        }
Example #2
0
        public void ConsumeAsync(AMQPConsumer consumer)
        {
            if (!IsConnected)
            {
                Connect();
            }

            var thread = new Thread(o => consumer.Start(this));

            thread.Start();

            while (!thread.IsAlive)
            {
                Thread.Sleep(1);
            }
        }
Example #3
0
 public void StopConsumingAsync(AMQPConsumer consumer) {
     consumer.Stop();
 }
Example #4
0
 public void StopConsumingAsync(AMQPConsumer consumer)
 {
     consumer.Stop();
 }