public Biz( ILoggerFactory loggerFactory, IConnectionFactory connectionFactory, IExchangeComDeclareParameters exchangeDeclareParameters, IQueueComDeclareParameters queueDeclareParameters, INotifierMediatorService notifierMediatorService, ITagGroupReady tagGroupReady, IAllTagGroupAllConnection allTagGroupAllConnection, IComponentContext componentContext ) { _loggerFactory = loggerFactory; _logger = _loggerFactory.CreateLogger <Biz>(); _connectionFactory = connectionFactory; _exchangeDeclareParameters = exchangeDeclareParameters; _queueDeclareParameters = queueDeclareParameters; _notifierMediatorService = notifierMediatorService; _tagGroupReady = tagGroupReady; _allTagGroupAllConnection = allTagGroupAllConnection; _componentContext = componentContext; _machineName = Environment.MachineName; _logger.LogInformation("KBase.Business.Com startup machine name: " + _machineName); PersistentConnection = new DefaultRabbitMqPersistentConnection(_connectionFactory, _loggerFactory); }
public Query( ILoggerFactory loggerFactory, IAllTagGroupAllConnection allTagGroupAllConnection, IAllConnection allConnection ) { _logger = loggerFactory.CreateLogger <Query>(); _allTagGroupAllConnection = allTagGroupAllConnection; _allConnection = allConnection; }
public QueryAsync( ILoggerFactory loggerFactory, IMapper mapper, IAllTagGroupAllConnection allTagGroupAllConnection, IAllConnection allConnection ) { _logger = loggerFactory.CreateLogger <QueryAsync>(); _mapper = mapper; _allTagGroupAllConnection = allTagGroupAllConnection; _allConnection = allConnection; }