Esempio n. 1
0
        public static ThreadDelegate Start(ThreadProcCallback callback, ThreadProcExceptionHandler threadProcExceptionHandler = null)
        {
            ThreadDelegate workerThread = Create(callback, threadProcExceptionHandler);

            workerThread.Start();
            return(workerThread);
        }
Esempio n. 2
0
 public static ThreadDelegate Create(ThreadProcCallback callback, ThreadProcExceptionHandler threadProcExceptionHandler = null)
 {
     return(new ThreadDelegate(callback, threadProcExceptionHandler));
 }
Esempio n. 3
0
 protected ThreadDelegate(ThreadProcCallback callback, ThreadProcExceptionHandler threadProcExceptionHandler = null)
 {
     OnCallback            = callback;
     OnThreadProcException = threadProcExceptionHandler;
 }