void OnRunJob(EzJob job, EzJobResultBody body, bool isLastJob) { if (!isLastJob) { onWatchPushJob.Invoke(); } if (job != null) { onWatchRunJob.Invoke(job, body); } }
public EzRunResult( RunResult result ) { if (result.item != null) { Item = new EzJob(result.item); } if (result.result != null) { Result = new EzJobResultBody(result.result); } if (result.isLastJob.HasValue) { IsLastJob = result.isLastJob.Value; } }