Exemplo n.º 1
0
        protected void InitReceiver(string agentName, string busName)
        {
            _MQAgent = MSMQAgent.GetMSMQAgent(agentName, busName);

            if (_MQAgent == null || _MQAgent.GetQueue() == null)
            {
                throw new Exception("Init receiver failed.");
            }

            if (_MQAgent.GetQueue() == null)
            {
                throw new Exception("Init receiver's queue failed.");
            }
        }