private void InitializeThreadState(object threadParams, ThreadDispatch.ThreadWorkerMethodWithReturnAndParam workerMethod, ApartmentState aptState, bool background) { this.threadParams = threadParams; this.threadWorkerMethodWithReturnAndParam = workerMethod; this.thread = new Thread(new ThreadStart(this.ThreadEntryPointMethodWithReturnAndParam)); 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.ThreadWorkerMethodWithReturnAndParam 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.ThreadWorkerMethodWithReturnAndParam workerMethod, ApartmentState aptState, bool background) { this.threadParams = threadParams; this.threadWorkerMethodWithReturnAndParam = workerMethod; this.thread = new Thread(new ThreadStart(this.ThreadEntryPointMethodWithReturnAndParam)); this.thread.SetApartmentState(aptState); this.backgroundThread = background; }