예제 #1
0
 public void Dispose()
 {
     if (UserLocalWorker)
     {
         LocalThreadManager.GetInstance().RemoveWorker(this);
     }
     else
     {
         bw.Dispose();
     }
 }
예제 #2
0
 public LocalBackgroundWorker()
 {
     if (UserLocalWorker)
     {
         LocalThreadManager.GetInstance().AddWorker(this);
     }
     else
     {
         bw = new BackgroundWorker();
     }
 }
예제 #3
0
 public static LocalThreadManager Start()
 {
     return(instance = new LocalThreadManager());
 }