Beispiel #1
0
 protected override void OnStart(string[] args)
 {
     Tracker dataManager = new Tracker();
     _workerThread = new Thread(dataManager.OnStart);
     _workerThread.SetApartmentState(ApartmentState.STA);
     _workerThread.Start();
 }
Beispiel #2
0
 public Service()
 {
     Tracker dataManager = new Tracker();
     _workerThread = new Thread(dataManager.OnStart);
     _workerThread.SetApartmentState(ApartmentState.STA);
 }