private void CreateHeartbeatWorkerAndTimer() { HeartbeatWorker heartbeatWorker = new HeartbeatWorker(Receiver); Timer timer = new Timer(10000.0); timer.Elapsed += delegate { heartbeatWorker.DoWork(); }; _heartbeatTimerAndWorker = new TimerAndWorker(heartbeatWorker, timer); }
private void ConfigureThreads() { EndpointConnectWorker = new EndpointConnectWorker(this); HeartbeatWorker = new HeartbeatWorker(this); ConnectionStatusWorker = new ConnectionStatusWorker(this); SystemStatusWorker = new SystemStatusWorker(this); ReportStatusWorker = new ReportStatusWorker(this); VersionUpgradeWorker = new VersionUpgradeWorker(this); ConfigurationWorker = new ConfigurationWorker(this); FolderStatsWorker = new FolderStatsWorker(this); FolderModelWorker = new FolderModelWorker(this); // Connection monitoring events will be processed by this manager, // all other workers will enrich the information nodes themself. EndpointConnectWorker.Executed += OnEndpointConnectStatusReceived; HeartbeatWorker.Executed += OnHeartbeatReceived; }
private void ConfigureThreads() { EndpointConnectWorker = new EndpointConnectWorker(this); HeartbeatWorker = new HeartbeatWorker(this); ConnectionStatusWorker = new ConnectionStatusWorker(this); SystemStatusWorker = new SystemStatusWorker(this); ReportStatusWorker = new ReportStatusWorker(this); VersionUpgradeWorker = new VersionUpgradeWorker(this); ConfigurationWorker = new ConfigurationWorker(this); FolderStatsWorker = new FolderStatsWorker(this); FolderModelWorker = new FolderModelWorker(this); // Connection monitoring events will be processed by this manager, // all other workers will enrich the information nodes themself. EndpointConnectWorker.Executed += OnEndpointConnectStatusReceived; HeartbeatWorker.Executed += OnHeartbeatReceived; }