private void GetSIPProviderBindingsCountCompleted(object sender, GetSIPProviderBindingsCountCompletedEventArgs e)
 {
     if (IsUnauthorised(e.Error))
     {
         SessionExpired();
     }
     else if (GetSIPProviderBindingsCountComplete != null)
     {
         GetSIPProviderBindingsCountComplete(e);
     }
 }
        private void GetSIPProviderBindingsCountComplete(GetSIPProviderBindingsCountCompletedEventArgs e)
        {
            try
            {
                m_sipProviderRegistrationsPanel.AssetListTotal = e.Result;
                LogActivityMessage_External(MessageLevelsEnum.Info, e.Result + " SIP Provider Bindings are registered.");
                m_persistor.GetSIPProviderBindingsAsync(m_sipProviderBindingsWhere, m_sipRegistrationAgentBindingsPanelOffset, m_sipRegistrationAgentBindingsPanelCount);
            }
            catch (Exception excp)
            {
                string excpMessage = (excp.InnerException != null) ? excp.InnerException.Message : excp.Message;
                LogActivityMessage_External(MessageLevelsEnum.Error, "There was an error retrieving the number of SIP Provider bindings. " + excpMessage);

                m_sipRegistrationAgentBindingsPanelRefreshInProgress = false;
            }
        }
 private void GetSIPProviderBindingsCountCompleted(object sender, GetSIPProviderBindingsCountCompletedEventArgs e) {
     if (IsUnauthorised(e.Error)) {
         SessionExpired();
     }
     else if (GetSIPProviderBindingsCountComplete != null) {
         GetSIPProviderBindingsCountComplete(e);
     }
 }