Example #1
0
        protected void CreateReceiver()
        {
            if (_messageReceiver != null)
            {
                return;
            }

            _messageReceiver = _messageConsumer.CreateReceiver(QueueName, _singleActiveConsumer);
            _messageReceiver.MessageReceived += OnMessageReceived;
            _messageReceiver.Start();
        }