Example #1
0
        /// <summary>
        /// 创建DB客户端
        /// </summary>
        /// <returns></returns>
        public static IDbMessageClient CreateDbClient()
        {
            IDbMessageClient messageQueueClient = new RabitMQChannel("/db");

            return(messageQueueClient);
        }
Example #2
0
        /// <summary>
        /// 创建用户客户端
        /// </summary>
        /// <returns></returns>
        public static IUserMessageClient CreateUserClient()
        {
            IUserMessageClient messageQueueClient = new RabitMQChannel("/user");

            return(messageQueueClient);
        }
Example #3
0
        /// <summary>
        /// 创建客户端对象
        /// </summary>
        /// <returns></returns>
        public static IMessageClient CreateClient()
        {
            IMessageClient messageQueueClient = new RabitMQChannel("/");

            return(messageQueueClient);
        }