void _lyncClient_DelegatorClientAdded(object sender, DelegatorClientCollectionEventArgs e) { e.DelegatorClient.ConversationManager.ConversationAdded += ConversationManager_ConversationAdded; foreach (Conversation c in e.DelegatorClient.ConversationManager.Conversations) { if (_conversation == null) { _conversation = c; } // Subscribe to conversation events c.InitialContextReceived += Conversation_InitialContextReceived; c.ContextDataReceived += Conversation_ContextDataReceived; c.StateChanged += Conversation_StateChanged; } }
void _lyncClient_DelegatorClientAdded(object sender, DelegatorClientCollectionEventArgs e) { e.DelegatorClient.ConversationManager.ConversationAdded += ConversationManager_ConversationAdded; foreach (Conversation c in e.DelegatorClient.ConversationManager.Conversations) { if (_conversation == null) { _conversation = c; } // Subscribe to conversation events c.InitialContextReceived += Conversation_InitialContextReceived; c.ContextDataReceived += Conversation_ContextDataReceived; c.StateChanged += Conversation_StateChanged; } }