Пример #1
0
 public JobsEventArgs(JobEventArgs jobEventArgs)
 {
     this.jobEventArgs = jobEventArgs;
 }
Пример #2
0
 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);
 }
Пример #3
0
 private void Jobs_OnJobDone(object source, JobEventArgs e, int id)
 {
     OnJobDone?.Invoke(this, new JobsEventArgs(e));
 }
Пример #4
0
 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);
 }