コード例 #1
0
ファイル: Biz.cs プロジェクト: K-Society/KSociety.Com
        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);
        }
コード例 #2
0
 public Query(
     ILoggerFactory loggerFactory,
     IAllTagGroupAllConnection allTagGroupAllConnection,
     IAllConnection allConnection
     )
 {
     _logger = loggerFactory.CreateLogger <Query>();
     _allTagGroupAllConnection = allTagGroupAllConnection;
     _allConnection            = allConnection;
 }
コード例 #3
0
ファイル: QueryAsync.cs プロジェクト: maniepiedi/KSociety.Com
 public QueryAsync(
     ILoggerFactory loggerFactory,
     IMapper mapper,
     IAllTagGroupAllConnection allTagGroupAllConnection,
     IAllConnection allConnection
     )
 {
     _logger = loggerFactory.CreateLogger <QueryAsync>();
     _mapper = mapper;
     _allTagGroupAllConnection = allTagGroupAllConnection;
     _allConnection            = allConnection;
 }