public void SetUp() { myInterval = new TimeSpan(0, 0, 30); myIndicator = "ProcessorName"; myIPlugin = new MyTestPlugin(); myIndicatorJob = new IndicatorTimerJob(myIPlugin, myIndicator, myInterval); }
/// <summary> /// Refreshes the sheduler if there are new plugins available. /// </summary> public override void RefreshJobs() { // Start the schedulers for all indicators foreach (IPlugin p in PluginManager.Instance.GetLoadedPlugins()) { foreach (IndicatorSettings indicatorSetting in p.GetIndicatorSettings()) { TimeSpan updateInterval = new TimeSpan(indicatorSetting.UpdateInterval.Ticks); TimerJobBase job = new IndicatorTimerJob(p, indicatorSetting.IndicatorName, updateInterval); Jobs.Add(job); job.Start(); } } }