private void AddHook(IJob item) { if (_nextJobs != null) { var samples = ProtocolSynchronization.GetAffectedSamples(_context, item); _hooks.Add(item, CollectionBinding.Create( _nextJobs.Jobs.Where(j => ProtocolSynchronization.GetAffectedSamples(_context, j).Intersect(samples).Any(), j => ProtocolSynchronization.GetAffectedSamples(_context, j).Intersect(samples).Any()), item.Next)); } }
public void Load(JobRequest jobRequest) { _jobRequest = jobRequest; _synchronization = new ProtocolSynchronization(); _synchronization.Initialize(); }