/// <summary>
        ///
        /// </summary>
        /// <param name="sender"></param>
        /// <param name="e"></param>
        void Conversation_StateChanged(object sender, Microsoft.Lync.Model.Conversation.ConversationStateChangedEventArgs e)
        {
            if (e.NewState == ConversationState.Terminated)
            {
                // TODO: Handle conversation state change events

                if (_myApplicationRegistration != null)
                {
                    // Unregister Run-Time Registration for application context.
                    _myApplicationRegistration.RemoveRegistration();
                }

                if (_cWindow != null)
                {
                    this._cWindow.Close();
                }
            }
        }
        /// <summary>
        ///
        /// </summary>
        /// <param name="sender"></param>
        /// <param name="e"></param>
        void Conversation_StateChanged(object sender, Microsoft.Lync.Model.Conversation.ConversationStateChangedEventArgs e)
        {
            Conversation conv = sender as Conversation;

            if (e.NewState == ConversationState.Terminated)
            {
                if (conv != null)
                {
                    //conv.InitialContextReceived -= Conversation_InitialContextReceived;
                    //conv.ContextDataReceived -= Conversation_ContextDataReceived;
                    //conv.StateChanged -= Conversation_StateChanged;

                    if (conv == _conversation)
                    {
                        _conversation = null;
                    }
                }
            }
        }
Example #3
0
 void Conversation_StateChanged(object sender, Microsoft.Lync.Model.Conversation.ConversationStateChangedEventArgs e)
 {
     throw new NotImplementedException();
 }