Exemplo n.º 1
0
        public RabbitFanoutReceiver(ILogger logger, RabbitPubSubSetting rabbitSetting)
        {
            _logger  = logger;
            _setting = rabbitSetting;
            ConnectionFactory factory = new ConnectionFactory();

            factory.UserName = _setting.UserName;
            factory.Password = _setting.Password;
            factory.HostName = _setting.HostName;
            _factory         = factory;
        }
Exemplo n.º 2
0
 public RabbitQueueService(ILogger logger, IConfiguration config)
 {
     _logger  = logger;
     _setting = new RabbitPubSubSetting();
     config.GetSection("RabbitPubSubSetting").Bind(_setting);
 }