Example #1
0
 private void SendPing(object source, ElapsedEventArgs e)
 {
     if (_myServer._isPrimary)
     {
         return;
     }
     try {
         Console.WriteLine("Trying to Send Ping");
         _otherServer.receiveHeartBeat("ping");
     } catch (RemotingException) {
         Console.WriteLine("Remote Exception");
         StopSend();
         StopReceive();
         _myServer.reportFailure();
     }
 }