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