/// <summary>
        /// 注册消费者服务,获取消费创建对象
        /// </summary>
        /// <param name="services"></param>
        /// <param name="configure"></param>
        /// <returns></returns>
        public static IRabbitConsumerBuilder AddRabbitConsumer(this IServiceCollection services, Action <RabbitConsumerOptions> configure)
        {
            RabbitConsumerOptions rabbitConsumerOptions = new RabbitConsumerOptions();

            configure?.Invoke(rabbitConsumerOptions);
            return(services.AddRabbitConsumer(rabbitConsumerOptions));
        }
 /// <summary>
 /// 注册消费者服务,获取消费创建对象
 /// </summary>
 /// <param name="services"></param>
 /// <param name="rabbitConsumerOptions"></param>
 /// <returns></returns>
 public static IRabbitConsumerBuilder AddRabbitConsumer(this IServiceCollection services, RabbitConsumerOptions rabbitConsumerOptions)
 {
     services.AddRabbitConsumerCore();
     return(new RabbitConsumerBuilder(services, rabbitConsumerOptions));
 }