Exemple #1
0
        static void DoWork(object param)
        {
            ThreadProxy task = param as ThreadProxy;

            task.DoWork();
        }
Exemple #2
0
 public static bool AddTask(ThreadProxy param)
 {
     return(ThreadPool.QueueUserWorkItem(new WaitCallback(DoWork), param));
 }