//this method gets called from the ApplicationHost over remoting internal void StartJobRequests(JobApplicationHost jobApplicationHost) { _threads = new Dictionary <Job, Thread>(); _requests = new Dictionary <Job, HostedJobWorkerRequest>(); foreach (var job in GetJobs()) { var hwr = CreateWorkerRequest(job); var t = new Thread(ThreadProc); _requests.Add(job, hwr); _threads.Add(job, t); } foreach (var item in _threads) { item.Value.Start(_requests[item.Key]); } }
//this method gets called from the ApplicationHost over remoting internal void StartJobRequests(JobApplicationHost jobApplicationHost) { _threads = new Dictionary<Job, Thread>(); _requests = new Dictionary<Job, HostedJobWorkerRequest>(); foreach (var job in GetJobs()) { var hwr = CreateWorkerRequest(job); var t = new Thread(ThreadProc); _requests.Add(job, hwr); _threads.Add(job, t); } foreach(var item in _threads) { item.Value.Start(_requests[item.Key]); } }