示例#1
0
        /// <summary>
        /// 获取自动消息处理器
        /// </summary>
        /// <param name="queryName">处理器名称</param>
        /// <returns>返回消息处理器,创建失败返回null</returns>
        public static IAutoReveiveMessage GetAutoReceiveQueue(string queryName)
        {
            var heper = new MessageQueueConfigHelper();

            return(CreateAutoReceiveMessage(heper[queryName]));
        }
示例#2
0
        /// <summary>
        /// 获取消息处理器
        /// </summary>
        /// <param name="queryName">处理器名称</param>
        /// <returns>返回消息处理器,创建失败返回null</returns>
        public static IMessageQueue GetMessageQueue(string queryName)
        {
            var heper = new MessageQueueConfigHelper();

            return(CreateMessageQueue(heper[queryName]));
        }