Ejemplo n.º 1
0
        private void TriggerEvent()
        {
            JobRunningEventArgs args = new JobRunningEventArgs();

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

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