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