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

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