Exemplo n.º 1
0
 /// <summary>
 /// 构造函数
 /// </summary>
 public RabbitMQConsumerApplication(
     IOptions <MQSetting> mqSetting,
     IOptions <List <ConsumerSetting> > consumerSettings,
     IConfiguration configuration,
     IRedisServices redis
     )
 {
     _redis            = redis;
     _mqSetting        = mqSetting.Value;
     _consumerSettings = consumerSettings.Value;
     _configuration    = configuration;
 }
Exemplo n.º 2
0
 public IMMessageConsumer(IConfiguration configuration, IRedisServices redis)
 {
     _redis         = redis;
     _configuration = configuration;
 }