コード例 #1
0
        internal System.Threading.Thread RunAsync(string uuid, string mode)
        {
            System.Threading.Thread thread  = new System.Threading.Thread(new System.Threading.ParameterizedThreadStart(RunInThread));
            RunInThreadArgs         runArgs = new RunInThreadArgs(uuid, mode);

            thread.Start(runArgs);
            return(thread);
        }
コード例 #2
0
        private void RunInThread(object args)
        {
            if (args == null)
            {
                throw new System.ArgumentNullException("args cannot be null");
            }
            RunInThreadArgs runArgs = (RunInThreadArgs)args;

            if (args == null)
            {
                throw new ArgumentException("args should be a RunInThreadArgs");
            }

            this.Run(runArgs.uuid, runArgs.mode);
        }
コード例 #3
0
 internal System.Threading.Thread RunAsync(string uuid, string mode)
 {
     System.Threading.Thread thread = new System.Threading.Thread(new System.Threading.ParameterizedThreadStart(RunInThread));
     RunInThreadArgs runArgs = new RunInThreadArgs(uuid, mode);
     thread.Start(runArgs);
     return thread;
 }