Beispiel #1
0
        /// <summary>
        /// Connects the modality (audio): AvModality.BeginConnect()
        /// </summary>
        private void Connect()
        {
            //starts an audio call or conference by connecting the AvModality
            try
            {
                _log.Debug("ConnectAudio  BeginConnect");

                AsyncCallback callback = new AsyncOperationHandler(_avModality.EndConnect).Callback;
                _avModality.BeginConnect(callback, null);
            }
            catch (LyncClientException lyncClientException)
            {
                _log.ErrorException("", lyncClientException);
            }
            catch (Exception systemException)
            {
                _log.ErrorException("", systemException);
            }
        }
Beispiel #2
0
 public static void AvConnect(ConversationWindow conversationWindow)
 {
     try
     {
         AVModality avModality = (AVModality)conversationWindow.Conversation.Modalities[ModalityTypes.AudioVideo];
         if (avModality != null)
         {
             if (avModality.CanInvoke(ModalityAction.Connect))
             {
                 avModality.BeginConnect(null, null);
             }
         }
     }
     catch (Exception ex)
     {
         LogManage.WriteLog(typeof(LyncHelper), ex);
     }
     finally
     {
     }
 }