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(); }
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(); }