public void UpdateProfileGenericData() { while (true) { Thread.Sleep(Target.CapturePeriod * 1000); Target.Capture(Server); } }
public void UpdateProfileGenericData() { do { try { Target.Capture(Server); } catch (Exception ex) { System.Diagnostics.Debug.WriteLine(ex.Message); } }while (!Closing.WaitOne(Target.CapturePeriod * 60000)); }