SyncthingCore.ManagedInstance.ConfigureThreads C# (CSharp) Method

ConfigureThreads() private method

private ConfigureThreads ( ) : void
return void
        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;
        }