public void ConsumeAsync(AMQPConsumer consumer) { if (!IsConnected) Connect(); var thread = new Thread(o => consumer.Start(this)); thread.Start(); while (!thread.IsAlive) Thread.Sleep(1); }
public void ConsumeAsync(AMQPConsumer consumer) { if (!IsConnected) { Connect(); } var thread = new Thread(o => consumer.Start(this)); thread.Start(); while (!thread.IsAlive) { Thread.Sleep(1); } }
public void StopConsumingAsync(AMQPConsumer consumer) { consumer.Stop(); }