public JobsEventArgs(JobEventArgs jobEventArgs) { this.jobEventArgs = jobEventArgs; }
private void onJobTerminate(Object sender, JobEventArgs e) { Console.Out.WriteLine("{0} JobID: {1}:\t Job has teminated.", DateTime.Now, e.JobId); DatabaseManager.updateJob(e.JobId, e.JobState); }
private void Jobs_OnJobDone(object source, JobEventArgs e, int id) { OnJobDone?.Invoke(this, new JobsEventArgs(e)); }
private void onJobRun(Object sender, JobEventArgs e) { Console.Out.WriteLine("{0} JobID: {1}:\t Job is runnig.", DateTime.Now, e.JobId); DatabaseManager.updateJob(e.JobId, e.JobState); }