示例#1
0
 /// <summary>
 /// RabbitMQ客户端管理类
 /// </summary>
 /// <param name="config"></param>
 public RabbitMQClient(RabbitMQConfig config)
 {
     this._config = config;
 }
示例#2
0
 /// <summary>
 /// RabbitMQ客户端管理类
 /// </summary>
 /// <param name="configuration"></param>
 public RabbitMQClient(IConfiguration configuration)
 {
     this._config = configuration.GetSection("RabbitMQConfig").Get <RabbitMQConfig>();
 }