我有以下代码,我相当肯定它可以工作,但考虑到聊天是新创建的,我不确定分配什么“会议访问”。有谁知道该怎么做?
if (_lyncAutomation != null)
{
AutomationModalities mode = AutomationModalities.InstantMessage;
var convoSettings = new Dictionary<AutomationModalitySettings, object>();
convoSettings.Add(AutomationModalitySettings.Subject, chatTitle);
convoSettings.Add(AutomationModalitySettings.FirstInstantMessage, chat);
convoSettings.Add(AutomationModalitySettings.SendFirstInstantMessageImmediately, true);
try
{
_lyncAutomation.BeginStartConversation(mode, participants, convoSettings,
StartConversationCallback, null);
ConferenceAccessInformation conferenceAccess = ConferenceAccessInformation;
string chatURL = conferenceAccess.ExternalUrl;
}
需要明确的是,上面的代码运行良好,除了我刚刚添加的最后几行。
提前感谢您的帮助。