Beispiel #1
0
        private void ConversationManagerConversationAdded(Conversation newConversation)
        {
            Boolean addedByThisProcess = true;

            try
            {
                //Suspend hosting new conversations until this conversation is ended
                ConversationManager.ConversationAdded -= OnConversationManagerConversationAdded;
            }

            catch (Exception ex)
            {
                _log.Error("ConversationAdded", ex);
            }

            var conversation = newConversation;

            if (_currentLyncConversation == null)
            {
                addedByThisProcess = false;
                //	_currentLyncConversation = ConversationFactory.CreateLyncConversation(conversation);
            }

            _log.Debug("OnConversationManagerConversationAdded  addedByThisProcess:{0}", addedByThisProcess);

            if (_currentLyncConversation != null)
            {
                _currentLyncConversation.Conversation = conversation;
                _currentLyncConversation.HandleAdded();
            }
            else
            {
                _log.Debug("OnConversationManagerConversationAdded  none conversationType");
            }
        }