public void Dispose() { if (UserLocalWorker) { LocalThreadManager.GetInstance().RemoveWorker(this); } else { bw.Dispose(); } }
public LocalBackgroundWorker() { if (UserLocalWorker) { LocalThreadManager.GetInstance().AddWorker(this); } else { bw = new BackgroundWorker(); } }
public static LocalThreadManager Start() { return(instance = new LocalThreadManager()); }