Пример #1
0
        public StitchMonitorModule(CrossStitchCore core, NodeConfiguration configuration)
        {
            _messageBus    = core.MessageBus;
            _configuration = configuration;
            var data = new DataHelperClient(core.MessageBus);
            var log  = new ModuleLog(_messageBus, Name);

            _heartbeatService = new StitchHeartbeatService(data, log, new HeartbeatSender(_messageBus));
        }
Пример #2
0
        public StitchMonitorModule(CrossStitchCore core, NodeConfiguration configuration)
        {
            _configuration = configuration;
            var log             = new ModuleLog(core.MessageBus, Name);
            var calculator      = new StitchHealthCalculator(configuration.MissedHeartbeatsThreshold);
            var heartbeatSender = new HeartbeatSender(core.MessageBus);
            var healthNotifier  = new StitchHealthNotifier(core.MessageBus);

            _heartbeatService = new StitchHeartbeatService(log, heartbeatSender, healthNotifier, calculator);
            _subscriptions    = new SubscriptionCollection(core.MessageBus);
        }