我正在尝试使用控制台应用程序记录我的 Lync 对话,该应用程序使用 Lync SDK 访问 Lync 客户端。我的代码与此类似:
public void GetNotifiedAboutMessageSent()
{
var client = LyncClient.GetClient();
foreach (var conversation in client.ConversationManager.Conversations)
foreach (var participant in conversation.Participants)
((InstantMessageModality)participant.Modalities[ModalityTypes.InstantMessage]).InstantMessageReceived += participant_InstantMessageReceived;
}
//Event handlers
void participant_InstantMessageReceived(object sender, MessageSentEventArgs e)
{
LogText("Message received");
}
发送或接收消息时会引发参与者_InstantMessageReceived 事件,但发送(或接收)文件时不会引发参与者_InstantMessageReceived 事件。在通过 Lync 发送文件时,我可以订阅或以其他方式获取通知的文件传输上的类似事件吗?