Ejemplo n.º 1
0
        public void AddJob(BaseDataSourceManager manager, TimerCallback callback, int dueTime, int period)
        {
            Logging.LogInfo("Adding DataSourceManager");
            var timer = new Timer(callback, null, 0, period);

            _timers.Add(timer);
        }
Ejemplo n.º 2
0
        public override void Initialize(XElement configRoot)
        {
            // do normal init

            // create hash provider and register
               _dsm = new DataSourceManagerTemplate("a unique but consistent name - probably taken from config");
            const int waitPeriod = 3000; // ms delay between checks
            EntityChangeManager.Instance.AddJob(_dsm, _dsm.ProcessDataSource, 0, waitPeriod);
        }
Ejemplo n.º 3
0
        public override void Initialize(XElement configRoot)
        {
            // do normal init

            // create hash provider and register
            _dsm = new DataSourceManagerTemplate("a unique but consistent name - probably taken from config");
            const int waitPeriod = 3000; // ms delay between checks

            EntityChangeManager.Instance.AddJob(_dsm, _dsm.ProcessDataSource, 0, waitPeriod);
        }
Ejemplo n.º 4
0
 public void AddJob(BaseDataSourceManager manager, TimerCallback callback, int dueTime, int period)
 {
     Logging.LogInfo("Adding DataSourceManager");
     var timer = new Timer(callback, null, 0, period);
     _timers.Add(timer);
 }