public AtlasPublisher(IMqService mqService, IInputService input, ILogger <AtlasPublisher> logger) { _mqService = mqService; _input = input; _logger = logger; }
public void Setup() { var ass = Assembly.GetExecutingAssembly(); var stream = ass.GetManifestResourceStream(ass.GetManifestResourceNames()[0]); var config = XDocument.Load(stream); var rabbitConn = config.Root.Element("connectionStrings").Element("add").Attribute("connectionString").Value; mqService = new MqService(rabbitConn); }
public UserHandler(IAtlasConsumer consumer, ITimerService timer, IAtlasPublisher publisher, IMqService mqService, IConfigService config, ILogger <UserHandler> logger) { _consumer = consumer; _timer = timer; _publisher = publisher; _config = config; _mqService = mqService; _logger = logger; }
public OrderCancelledDomainEventHandler(ILoggerFactory logger, IMqService eventBus, IRepository <Order> orderRepository, IRepository <Buyer> buyerRepository) { _logger = logger; _eventBus = eventBus; _orderRepository = orderRepository; _buyerRepository = buyerRepository; }
public MqManager(IMqService service, QueueInfo queueInfo) { mqService = service; //_queueInfo = queueInfo; exchangesQueues = new List <MqQueueInfo>(); foreach (var queue in queueInfo.Queues) { exchangesQueues.Add(new MqQueueInfo { ExchangeName = queueInfo.ExchangeName, RoutingKey = queue, QueueName = queue }); } RefreshQueuesInfo(); }
public MqNotificationService( RabbitMqConfiguration mqConfig, IMqService mqService, ModuleConfiguration configuration, ILogger logger, INotificationHelper helper) { this.notificationConfig = configuration.Notifications; this.mqConfig = mqConfig; this.mqService = mqService; this.logger = logger; this.helper = helper; }
public HostInfoConsumer(IMqService service) { _service = service; }
// dependency injection ctor protected MqController(IMqService mqService) { MqService = mqService; }
// default ctor protected MqController() { MqService = Services.Singleton.MqService.GetInstance(); }
/// <summary> /// 添加服务 /// </summary> /// <param name="mqService"></param> public void AddService(IMqService mqService) { Services.Add(mqService); }
public MqController(IMqService mqService) { _mqService = mqService; }
// dependency injection ctor public OrdersController(IMqService mqService) { MqService = mqService; }
public AtlasConsumer(IMqService mqService, IOutputService output, ILogger <AtlasConsumer> logger) { _mqService = mqService; _output = output; _logger = logger; }