public void UpdateLastWrite(Model.SsServerInfo server)
        {
            Logging.Debug(String.Format("last write: {0}", server.DisplayName()));

            ServerStatus status;
            if (_serverStatus.TryGetValue(server, out status))
            {
                status.lastWrite = DateTime.Now;
            }
        }
        public void UpdateLatency(Model.SsServerInfo server, TimeSpan latency)
        {
            Logging.Debug(String.Format("latency: {0} {1}", server.DisplayName(), latency));

            ServerStatus status;
            if (_serverStatus.TryGetValue(server, out status))
            {
                status.latency = latency;
                status.lastTimeDetectLatency = DateTime.Now;
            }
        }
        public void SetFailure(Model.SsServerInfo server)
        {
            Logging.Debug(String.Format("failure: {0}", server.DisplayName()));

            ServerStatus status;
            if (_serverStatus.TryGetValue(server, out status))
            {
                status.lastFailure = DateTime.Now;
                RemoveExpiredSsServerInfoFromConfig(server);
            }
        }