Esempio n. 1
0
        public void Test_Recurring_Timer()
        {
            var timer = new ActionTimer(null, TimeSpan.FromSeconds(2), () => Debug.WriteLine("PING"), false, true);

            Thread.Sleep(TimeSpan.FromSeconds(30));
            timer.Dispose();
        }
Esempio n. 2
0
 public void Disconnected()
 {
     AppState    = UnityAppState.DISCONNECTED;
     AppTimeSpan = DateTime.Now.Subtract(AppStart);
     SendAppState();
     StateUpdater.Dispose();
     Log.Info("Simulation App has disconnected.");
 }
 public void Dispose()
 {
     actionTimer.Dispose();
 }