【发布时间】:2019-09-26 02:52:09
【问题描述】:
我只需要提供一个电子邮件地址,然后让 ucma 协议使用 C# 从 Skype for business 发回用户的状态。
有人对如何在 ucma 中获取用户存在有一些提示吗? msdn上的教程没有说清楚。
这是我当前的代码
List<string> targets = new List<string>();
targets.Add("sip:fry@nnylync.info");
_endpoint.PresenceServices.BeginPresenceQuery(targets, new string[] {"state"}, null, ar =>
{
List<RemotePresentityNotification> presence = new List<RemotePresentityNotification>(_endpoint.PresenceServices.EndPresenceQuery(ar));
foreach (RemotePresentityNotification rpn in presence)
{
Console.WriteLine(rpn.PresentityUri + " is " + rpn.AggregatedPresenceState.EndpointLocation);
}
}, null);
【问题讨论】:
标签: c# skype-for-business skypedeveloper ucma ucwa