public void SetArguments(string jobName, JobArgumentCollection args)
        {
            lock (syncLock)
            {
                ManagedThread managedThread = threadDictionary[jobName];

                if (managedThread != null)
                {
                    managedThread.SetArguments(args);
                }
            }
        }
        public void UpdateArgumentsForAllJobs(Dictionary <string, JobArgumentCollection> argsDictionary)
        {
            lock (syncLock)
            {
                foreach (string name in argsDictionary.Keys)
                {
                    ManagedThread managedThread = threadDictionary[name];

                    if (managedThread != null)
                    {
                        managedThread.SetArguments(argsDictionary[name]);
                    }
                }
            }
        }