private void InitializeThreadState(object threadParams, ThreadDispatch.ThreadWorkerMethod workerMethod, ApartmentState aptState, bool background) { this.threadParams = threadParams; this.threadWorkerMethod = workerMethod; this.thread = new Thread(new ThreadStart(this.ThreadEntryPoint)); this.thread.SetApartmentState(aptState); this.backgroundThread = background; }
private ThreadDispatch() { this.thread = null; this.exception = null; this.threadParams = null; this.threadWorkerMethodWithReturn = null; this.threadWorkerMethodWithReturnAndParam = null; this.threadWorkerMethod = null; this.threadWorkerMethodWithParam = null; this.threadReturn = null; this.backgroundThread = false; this.apartmentType = ApartmentState.MTA; }
public ThreadDispatch(ThreadDispatch.ThreadWorkerMethod workerMethod) : this() { this.InitializeThreadState(null, workerMethod, ApartmentState.MTA, false); }
private ThreadDispatch() { this.thread = null; this.exception = null; this.threadParams = null; this.threadWorkerMethodWithReturn = null; this.threadWorkerMethodWithReturnAndParam = null; this.threadWorkerMethod = null; this.threadWorkerMethodWithParam = null; this.threadReturn = null; this.backgroundThread = false; this.apartmentType = ApartmentState.MTA; }
private void InitializeThreadState(object threadParams, ThreadDispatch.ThreadWorkerMethod workerMethod, ApartmentState aptState, bool background) { this.threadParams = threadParams; this.threadWorkerMethod = workerMethod; this.thread = new Thread(new ThreadStart(this.ThreadEntryPoint)); this.thread.SetApartmentState(aptState); this.backgroundThread = background; }