public AgentCenterService(IAgentStore agentStore, ILogger <AgentCenterService> logger, IMessageQueue messageQueue) { _agentStore = agentStore; _logger = logger; _messageQueue = messageQueue; _distributed = !(messageQueue is MessageQueue.MessageQueue); }
public StatisticsService(ILogger <StatisticsService> logger, IMessageQueue messageQueue, IStatisticsStore statisticsStore) { _logger = logger; _messageQueue = messageQueue; _statisticsStore = statisticsStore; }
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; }
public StatisticsClient(IMessageQueue messageQueue) { _messageQueue = messageQueue; }