private void Receive(Queues queuesToListenOn) { //TODO: When we recieve a message we need to subscibe to notifications from the queue again, this method lets us subscribe to one or both if (isRunning) { if (queuesToListenOn.HasFlag(Queues.Input)) { inputChannel.BeginReceive(new TimeSpan(0, 0, 0, ConfigurationSettings.PollingTimeout)); } if (queuesToListenOn.HasFlag(Queues.Control)) { //TODO: subscribe to messages on the control queue } } }
private void Receive(Queues queuesToListenOn) { if (isRunning) { if (queuesToListenOn.HasFlag(Queues.Input)) { inputChannel.BeginReceive(new TimeSpan(0, 0, 0, ConfigurationSettings.PollingTimeout)); } if (queuesToListenOn.HasFlag(Queues.Control)) { controlChannel.BeginReceive(new TimeSpan(0, 0, 0, ConfigurationSettings.PollingTimeout)); } } }