Exemplo n.º 1
0
 public int CreateJob(Job job)
 {
     Log.Trace("JobService.CreateJob called with Name: {0}", job.Name);
     var jobId = _Random.Next();
     var saved = Service.Execute<IJobService, bool>(svc => svc.SaveJob(job));
     if (saved)
     {
         Service.Execute<IComputeService>(svc => svc.Compute(jobId));
     }
     return jobId;
 }
Exemplo n.º 2
0
 public bool SaveJob(Job job)
 {
     Log.Trace("JobService.SaveJob called with jobId: {0}", job.Name);
     return true;
 }