コード例 #1
0
        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;
        }
コード例 #2
0
        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;
        }