private void IsAliveCompleted(object sender, IsAliveCompletedEventArgs e)
 {
     if (IsUnauthorised(e.Error))
     {
         SessionExpired();
     }
     else
     {
         IsAliveComplete(e);
     }
 }
예제 #2
0
        private void IsAliveCompleted(object sender, IsAliveCompletedEventArgs e)
        {
            if (e.Error == null)
            {
                if (StatusChanged != null)
                {
                    StatusChanged(ServiceConnectionStatesEnum.Ok, null);
                }

                m_notificationClient.GetPollPeriodAsync();
                m_notificationClient.SubscribeAsync(SIPMonitorClientTypesEnum.Machine.ToString(), MACHINE_EVENT_FILTER);
            }
            else
            {
                if (StatusChanged != null)
                {
                    StatusChanged(ServiceConnectionStatesEnum.Error, "Error contacting notifications service. " + e.Error.Message);
                }
            }
        }
        private void IsAliveCompleted(object sender, IsAliveCompletedEventArgs e)
        {
            if (e.Error == null)
            {
                if (StatusChanged != null)
                {
                    StatusChanged(ServiceConnectionStatesEnum.Ok, null);
                }

                m_notificationClient.GetPollPeriodAsync();
                m_notificationClient.SubscribeAsync(SIPMonitorClientTypesEnum.Machine.ToString(), MACHINE_EVENT_FILTER);
            }
            else
            {
                if (StatusChanged != null)
                {
                    StatusChanged(ServiceConnectionStatesEnum.Error, "Error contacting notifications service. " + e.Error.Message);
                }
            }
        }
예제 #4
0
 private void PersistorIsAliveComplete(IsAliveCompletedEventArgs e)
 {
     try
     {
         if (e.Result)
         {
             m_persistorStatusMessage = null;
             m_persistorStatus = ServiceConnectionStatesEnum.Ok;
         }
         else
         {
             m_persistorStatusMessage = "Could not connect to provisioning service on " + m_provisioningServiceURL + ".";
             m_persistorStatus = ServiceConnectionStatesEnum.Error;
         }
     }
     catch
     {
         //m_persistorStatusMessage = excp.Message;
         m_persistorStatusMessage = "Could not connect to provisioning service on " + m_provisioningServiceURL + ".";
         m_persistorStatus = ServiceConnectionStatesEnum.Error;
     }
     finally
     {
         m_provisioningInitialisationInProgress = false;
         UpdateAppStatus();
     }
 }
 private void IsAliveCompleted(object sender, IsAliveCompletedEventArgs e) {
     if (IsUnauthorised(e.Error)) {
         SessionExpired();
     }
     else {
         IsAliveComplete(e);
     }
 }