Пример #1
0
        public void UpdateLifeProofSlave(string url)
        {
            ServerPuppet.Instance.Wait();
            personalSlave = Servers.Find(server => server.URL.Equals(url));

            if (lifeProofTimer.Enabled == false)
            {
                lifeProofTimer.Enabled = true;
            }
        }
Пример #2
0
        private void TryToKill(ServerWithInfo <FaultTolerenceServer> server)
        {
            new Thread(() => {
                try {
                    ServerPuppet.Instance.DoDelay(server.URL);

                    server.Server.Kill();
                }
                catch (SocketException) {
                }
            }).Start();
        }