private void PingNotificaionEngine()
 {
     try
     {
         if (proxy.Ping())
         {
             m_NLog.Info("Ping to Notificaion Engine applied at {0} ", DateTime.Now.ToLongTimeString());
         }
     }
     catch (Exception ex)
     {
         m_NLog.Error("Failed to ping Notification Engine . Error Details : {0} ", ex.ToString());
         InitProxy();
         ConnectToNotificationEngine();
     }
 }
Exemplo n.º 2
0
 private void button1_Click(object sender, EventArgs e)
 {
     proxy.Subscribe();
     proxy.Ping();
 }