in src/main/csharp/MessageConsumer.cs [210:226]
protected virtual void StartAsyncDelivery()
{
Debug.Assert(null == this.asyncDeliveryThread);
lock(this.asyncDeliveryLock)
{
this.asyncInit = false;
this.asyncDelivery = true;
this.asyncDeliveryThread = new Thread(new ThreadStart(MsgDispatchLoop));
this.asyncDeliveryThread.Name = string.Format("MsgConsumerAsync: {0}", this.destination.Name);
this.asyncDeliveryThread.IsBackground = true;
this.asyncDeliveryThread.Start();
while(!asyncInit)
{
Thread.Sleep(1);
}
}
}