Пример #1
0
        public void StartPingServer()
        {
            _timer.Start();
            Running = true;
            var ea = new EventArgs();

            PingStatsUpdated?.Invoke(this, EventArgs.Empty);
        }
Пример #2
0
        private void timer_Elapsed(object sender, ElapsedEventArgs e)
        {
            SendPing();

            PingStatsUpdated?.Invoke(this, EventArgs.Empty);
        }
Пример #3
0
 public void StopPingServer()
 {
     _timer.Stop();
     Running = false;
     PingStatsUpdated?.Invoke(this, EventArgs.Empty);
 }