Exemplo n.º 1
0
        static void DoWork(object param)
        {
            ThreadProxy task = param as ThreadProxy;

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