是Office Communicator联系人吗?缓存的群组? [英] Are Office Communicator contacts & groups cached?

查看:73
本文介绍了是Office Communicator联系人吗?缓存的群组?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

嗨大家好,

我对C#比较陌生,对OC和OC自动化API都很陌生,所以请温柔:-)

我正在写作从Lotus Sametime转换联系人列表并将联系人导入Office Communicator的一段代码。我取得了相当大的成功,但我遇到了一些挫折。

我可以创建所有的联系人和群组,但如果我然后使用API​​删除联系人和群组,我会遇到问题。删除都是成功的,但似乎删除的联系人/组在某处存储/缓存。

如果我删除用户 user1@domain.com 从联系人列表中,然后尝试通过UI读取该用户我收到一条消息,说"'user1 @ domain.com已经在您的联系人列表中'。但是我无法在任何地方看到它。

如果我重新运行我的人口代码,那么类似的问题。即使我在尝试重新创建组之前检查组的存在(通过迭代'MyGroups'属性),我仍然会看到一个看似无法解决的错误对话框,指出"具有此名称的联系人组已经存在"。非常令人沮丧。

所以 - 几个问题: -

- 这些联系人和团体缓存在某个地方?可以刷新缓存吗?
- 有没有办法在不重复"MyGroups"的情况下抓住一个联系小组?

非常感谢,

汤姆。

解决方案

部分回答我自己的问题。


好的 - 部分我还没有完全掌握事件驱动的编程方法。


我的代码正在迭代联系人列表,将它们添加到组或在适当的位置创建新组。当我创建一个组然后立即尝试将用户添加到该组时出现问题。我的代码渴望进步意味着它没有等待API完成'CreateGroup'操作,然后尝试将用户添加到一个尚未创建的组中。

我一直在因此用于在LotusScript中进行开发,其中每个命令在下一个命令开始之前产生并等待完成,我没有正确理解将请求传递给第三方的结构,注册事件监听器并等待适当的通知。

我仍然没有解决删除用户然后尝试手动读取它们的问题。

汤姆。


Hi folks,

I'm relatively new to C# and very new to OC and the OC automation API so please be gentle :-)

I'm writing a piece of code to translate a list of contacts from Lotus Sametime and import the contacts into Office Communicator.  I'm having a decent amount of success but am hitting a couple of frustrations.

I can create all the contacts and groups, but I hit issues if I then use the API to delete the contacts and groups.  The deletions are all successful but it seems that deleted contacts/groups are stored/cached somewhere.

If I remove user user1@domain.com from the contact list, and then try to readd that user via the UI I get a message saying the 'user1@domain.com is already in your contact list'.  But I can't see it anywhere.

Similar problems if I then rerun my population code.  Even though I check for the existence of a group before attempting to recreate it (by iterating through the 'MyGroups' property) I still get a seemingly untrappable error dialog stating that "A contact group with this name already exists".  Very frustrating.

So - several questions:-

- Are these contacts & groups cached somewhere?   Can the cache be flushed? 
- Is there any way to grab a contact group without iterating through 'MyGroups'?

Many thanks,

Tom.

解决方案

Part answer to my own question.

Ok - this is partly me not quite getting to grips with the event driven approach to programming.

My code was iterating through a list of contacts, adding them to groups or creating new groups where appropriate.   The problems arose when I created a group and then immediately tried to add a user to that group.  My code's eagerness to progress meant that it was not waiting for the API to complete the 'CreateGroup' operation and then attempting to add users to a group that hadn't quite been created.

I've been so used to developing in LotusScript where each command yields and awaits completion before the next can start that I wasn't properly understanding the structure of passing off a request to a third party, registering an event listener and awaiting the appropriate notification.

I still don't get the issue with removing users and then trying to readd them manually though. 

Tom.


这篇关于是Office Communicator联系人吗?缓存的群组?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆