Beispiel #1
0
 public AgentCenterService(IAgentStore agentStore, ILogger <AgentCenterService> logger,
                           IMessageQueue messageQueue)
 {
     _agentStore   = agentStore;
     _logger       = logger;
     _messageQueue = messageQueue;
     _distributed  = !(messageQueue is MessageQueue.MessageQueue);
 }
Beispiel #2
0
 public StatisticsService(ILogger <StatisticsService> logger,
                          IMessageQueue messageQueue,
                          IStatisticsStore statisticsStore)
 {
     _logger          = logger;
     _messageQueue    = messageQueue;
     _statisticsStore = statisticsStore;
 }
Beispiel #3
0
        public AgentService(
            IMessageQueue messageQueue,
            IOptions <AgentOptions> options,
            IHostApplicationLifetime applicationLifetime,
            IDownloader downloader, HostBuilderContext hostBuilderContext, ILogger <AgentService> logger,
            IStatisticsClient statisticsClient)
        {
            _options             = options.Value;
            _logger              = logger;
            _statisticsClient    = statisticsClient;
            _messageQueue        = messageQueue;
            _applicationLifetime = applicationLifetime;
            _downloader          = downloader;
            _consumers           = new List <AsyncMessageConsumer <byte[]> >();

            hostBuilderContext.Properties[Const.DefaultDownloader] = downloader.Name;
        }
Beispiel #4
0
 public StatisticsClient(IMessageQueue messageQueue)
 {
     _messageQueue = messageQueue;
 }