protected void UpdateJob(Jobs.Job job) { //lock (_lock) { Collections.Job.Update(job); } }
//Out and Rest Pool constructures public PoolData(Solider solider, DateTime timeStartPool, Pool pool) { this._solider = solider; this._timeStartPool = timeStartPool; this._maxTimeJob = TimeSpan.MaxValue; //TODO Calulate this value based on the pool value this._job = Jobs.Job.NA; this._emergency = false; this._currentPool = pool; }
public DTOJobStatus(Jobs.Job j) { this.jobId = j.RowKey; this.imageConversionMode = j.imageConversionMode; this.status = j.status; this.statusDescription = j.statusDescription; this.imageSource = j.imageSource; this.imageResult = j.imageResult; }
public void Add(DeviceId id, Jobs.Job obj) { GetEntry(id).Add(new BufferedJob { DeviceId = id, Id = obj.Id, Job = obj, CreateDate = DateTimeOffset.Now, }); }
public void AddJob(DeviceId deviceId, Jobs.Job job) { //lock (_lock) { var foundDeviceIdBufferedJobLinks = GetDeviceIdBufferedJobLinkOrNull(deviceId); DeviceIdBufferedJobLink deviceIdBufferedJobLink; var bufferedJobToAdd = new BufferedJob { DeviceId = deviceId, Id = job.Id, Job = job, CreateDate = DateTimeOffset.Now, }; if (foundDeviceIdBufferedJobLinks != null) { deviceIdBufferedJobLink = foundDeviceIdBufferedJobLinks; } else { deviceIdBufferedJobLink = new DeviceIdBufferedJobLink { DeviceId = deviceId }; } //add deviceId if not existent AddOrUpdate(deviceIdBufferedJobLink.DeviceId); //add job if not existent Collections.Job.Insert(job); deviceIdBufferedJobLink.BufferedJobs.Add(bufferedJobToAdd); //add bufferedJobToAdd Collections.BufferedJob.Insert(bufferedJobToAdd); if (foundDeviceIdBufferedJobLinks != null) { Collections.DeviceIdBufferedJobLink.Update(deviceIdBufferedJobLink); } else { Collections.DeviceIdBufferedJobLink.Insert(deviceIdBufferedJobLink); } } }
public void AddJob(DeviceId deviceId, Jobs.Job job) { _jobBuffer.Add(deviceId, job); }
//CRCM and HalfSuit Pool constructures public PoolData(Solider solider, DateTime timeStartPool, Jobs.Job job, Pool pool) { //TODO use pool and job data to detemine max time job }