1

我有一个在 ASP.net 网站上列出的项目上发生的操作列表。这些操作记录在链接到项目的简单 sql 表中。IE:

[2013-11-04 18:00]: Problem solved
[2013-11-04 18:00]: Called User
[2013-11-04 14:00]: Mail Received

为此,我将不得不查询支持邮箱以获取新邮件。收到新消息时,会创建“收到邮件”操作。“收到的邮件”条目应该是可点击的,以便支持用户可以看到此消息的内容。

问题:如何查询这个邮箱?

我是否需要创建计划任务并使用 Exchange Webservices Managed API 2.0 每 5 分钟查询一次此邮箱?

或者我可以设置交换以将此消息“推送”到我的脚本吗?如果是这样..如何?

我们正在使用内部部署的 Exchange 2010 SP3 服务器,该服务器应在明年某个时候迁移到 Exchange Online。应用程序使用 MVC 5.0 框架在 ASP.NET 4.5 上运行。

4

1 回答 1

1

The EWS Managed API supports a number of ways to do this:

http://msdn.microsoft.com/en-us/library/hh312849(v=exchg.140).aspx

You can set up pull notifications (simple polling), push notifications (must set up a contract on both ends), streaming notifications (kind of the best of both worlds), or set up a periodic sync of the inbox. Once you have that much working, it's just a matter of moving the data around to trigger events. The sync action is not mentioned in the article, but can be invoked via the ExchangeService object.

于 2013-11-16T12:46:43.573 回答