Ejemplo n.º 1
0
 void peerContact_SubscribeCompleted(object sender, SubscribeCompletedEventArgs e)
 {
     if (e.Cancelled)
     {
         AddLog("[Cancelled]peerContact_SubscribeCompleted", LogType.System);
     }
     else
     {
         AddLog("peerContact_SubscribeCompleted", LogType.System);
     }
 }
Ejemplo n.º 2
0
 private void SubscribeCompleted(object sender, SubscribeCompletedEventArgs e)
 {
     if (e.Error == null)
     {
         if (!m_isConnected)
         {
             m_machineEventSessionID = e.Result;
             ThreadPool.QueueUserWorkItem(delegate { Poll(); });
             m_isConnected = true;
         }
         else
         {
             m_controlEventSessionID = e.Result;
         }
     }
     else
     {
         //LogActivityMessage_External(MessageLevelsEnum.Warn, "Error subscribing for notifications. " + e.Error.Message);
         StatusChanged(ServiceConnectionStatesEnum.Error, "Error subscribing for notifications. " + e.Error.Message);
     }
 }
 private void SubscribeCompleted(object sender, SubscribeCompletedEventArgs e)
 {
     if (e.Error == null)
     {
         if (!m_isConnected)
         {
             m_machineEventSessionID = e.Result;
             ThreadPool.QueueUserWorkItem(delegate { Poll(); });
             m_isConnected = true;
         }
         else
         {
             m_controlEventSessionID = e.Result;
         }
     }
     else
     {
         LogActivityMessage_External(MessageLevelsEnum.Warn, "Error subscribing for notifications. " + e.Error.Message);
     }
 }
 void peerContact_SubscribeCompleted(object sender, SubscribeCompletedEventArgs e)
 {
     if (e.Cancelled)
     {
         AddLog("[Cancelled]peerContact_SubscribeCompleted", LogType.System);
     }
     else
     {
         AddLog("peerContact_SubscribeCompleted", LogType.System);
     }
 }