protected virtual void SubscribeToQueue() { Subscription = SubscriptionClient.GetSubscription(); Subscription.OnMessage = (queue, message) => { Log.Debug("Message received: " + message); Nudged = (QueueSystemMessages.TaskAvailable.ToString() == message); if (Nudged) { MonitorThread.Interrupt(); } }; SubscriberThread.Start(); }