Beispiel #1
0
        /// <summary>
        /// 
        /// </summary>
        /// <param name="args"></param>
        private void SyncDataProgress(SyncDataProgressEventArgs args)
        {
            var jobAttrs = JobsHelper.Current.GetJobAttrs(_syncStockHistoricalDataJob.JobKey);
            if(jobAttrs == null)
                jobAttrs = new JobAttrs(_syncStockHistoricalDataJob.JobKey);

            jobAttrs.IsRunning = true;
            jobAttrs.Progress = args.Progress;

            JobsHelper.Current.SetJobAttrs(jobAttrs);
        }
Beispiel #2
0
 private void StopJob(string jobKey)
 {
     var jobAttrs = new JobAttrs(jobKey);
     jobAttrs.IsRunning = false;
     JobsHelper.Current.SetJobAttrs(jobAttrs);
 }