示例#1
0
 public PipelineBuffer(NetworkConnection networkConnection, Action scheduler, Spooler spooler)
 {
     _networkConnection = networkConnection;
     _spooler           = spooler;
     _pipelineTimer     = new Timer()
     {
         AutoReset = true
     };                                                                //***
     _pipelineTimer.Elapsed += (sender, e) => scheduler();
 }
示例#2
0
        public PipelineManager(NetworkConnection networkConnection)
        {
            _networkConnection = networkConnection;
            _spooler           = new Spooler(networkConnection);
            var newStats = new Timer(43200000)
            {
                AutoReset = true, Enabled = true
            };

            newStats.Elapsed += (sender, e) => NewStatsElapsed();
            Pipeline          = new PipelineBuffer(Scheduler, _spooler.SpoolerTimer);
        }