コード例 #1
0
 /// <summary>
 /// 
 /// </summary>
 /// <param name="doneAction">The delegate to call once the worker has finished.
 /// This won't be on the UI thread, and will require an Invoke.</param>
 public void Run(Action doneAction)
 {
     var worker = new ActionThreadWorker();
     Thread thread = new Thread(worker.Run);
     thread.Name = "Action thread";
     thread.Start(doneAction);
 }
コード例 #2
0
        /// <summary>
        ///
        /// </summary>
        /// <param name="doneAction">The delegate to call once the worker has finished.
        /// This won't be on the UI thread, and will require an Invoke.</param>
        public void Run(Action doneAction)
        {
            var    worker = new ActionThreadWorker();
            Thread thread = new Thread(worker.Run);

            thread.Name = "Action thread";
            thread.Start(doneAction);
        }