I am trying to create a simple contact manager for Lync 2010 UCMA.
Using an event NotificationReceived, when receiving "IsFullNotification". And hoping that the addition of groups, there will be no "IsFullNotification". But such an event never happened.
How can I still get a full list of contacts already added groups (as they are added successfully) to remap the contacts before adding the number of newly created.
So:
_contactGroupServices.NotificationReceived += new EventHandler<ContactGroupNotificationEventArgs> (OnNotificationReceived); _contactGroupServices.BeginSubscribe(ar => { try { _contactGroupServices.EndSubscribe(ar); } catch (RealTimeException rtex) { Console.WriteLine(rtex); } } , null);
void OnNotificationReceived(object sender, ContactGroupNotificationEventArgs e) { Console.WriteLine("Received a contact update."); if (e.IsFullNotification) //I expected that it will happen once
{ ExtractContactGroupInfo(e); AddGroups(); } else { HandleAddedGroupNotification(e); } }
P.S.
I
just need, when added to the group
will end (I can track down this moment)
somehow cause HandleAddedGroupNotification (e),
with parameter ContactGroupNotificationEventArgs e,
which contain the actual groups.
And then review groups indexes of contacts,
before add them.
P.P.S. Translated using translate.google.com