예제 #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);
            }
        }