示例#1
0
        private void TriggerEvent()
        {
            JobRunningEventArgs args = new JobRunningEventArgs();

            args.Threshold   = 33;// threshold;
            args.TimeReached = DateTime.Now;
            OnJobRunningEventFired(args);
        }
示例#2
0
        protected virtual void OnJobRunningEventFired(JobRunningEventArgs e)
        {
            EventHandler <JobRunningEventArgs> handler = JobRunningEvent;

            if (handler != null)
            {
                handler(this, e);
            }
        }