コード例 #1
0
        public void SetArguments(string jobName, JobArgumentCollection args)
        {
            lock (syncLock)
            {
                ManagedThread managedThread = threadDictionary[jobName];

                if (managedThread != null)
                {
                    managedThread.SetArguments(args);
                }
            }
        }
コード例 #2
0
        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]);
                    }
                }
            }
        }