Exemplo n.º 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);
        }
Exemplo n.º 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);
            }
        }
Exemplo n.º 3
0
 public void StopConsumingAsync(AMQPConsumer consumer) {
     consumer.Stop();
 }
Exemplo n.º 4
0
 public void StopConsumingAsync(AMQPConsumer consumer)
 {
     consumer.Stop();
 }