简体   繁体   English

使用EWS流从交换服务器获取数据

[英]Using EWS Streaming to get data from exchange server

Is it possible with the EWS Streaming service, to read data from the server, which are created before streaming was started? EWS Streaming服务是否可以从服务器读取在流开始之前创建的数据?

For example if a user creates an Appointment or edit an Appointment when the streaming service is not available, can i receive them later using EWS Streaming ? 例如,如果用户在流媒体服务不可用时创建Appointment或编辑Appointment ,我以后可以使用EWS Streaming接收它们吗? Or is this a kind of live data transportation and if I'm not connected with the exchange service, the data gets lost. 还是这是一种实时数据传输,如果我未与交换服务连接,则数据会丢失。

Thank you in advance! 先感谢您!

EWS Streaming notifications just notify you that an Item has change,arrived etc if your not connected you won't get events during the outage period what you should do is supplement what you are doing with streaming notifications with SyncFolderItems etc eg theres a sample for that here https://code.msdn.microsoft.com/exchange/Exchange-2013-Use-55cc3b2a/view/SourceCode#content . EWS流式通知只是通知您某个项目已更改,到达等,如果您没有连接,则在中断期间您将不会收到事件,您应该做的是用SyncFolderItems等流式通知来补充您正在做的事情,例如有一个示例此处https://code.msdn.microsoft.com/exchange/Exchange-2013-Use-55cc3b2a/view/SourceCode#content As an adjunct I would also look at also using the PR_LOCAL_COMMIT_TIME_MAX property on a folder to tell if the underlying folder contents have been modified during any outage time see "Recovering from lost subscriptions" in https://msdn.microsoft.com/en-us/library/office/dn458788(v=exchg.150).aspx 作为辅助,我还将考虑在文件夹上使用PR_LOCAL_COMMIT_TIME_MAX属性来判断基础文件夹的内容在任何中断时间内是否已被修改,请参见https://msdn.microsoft.com/zh-CN中的 “从丢失的订阅中恢复” 我们/图书馆/办公室/dn458788(v=exchg.150).aspx

Cheers Glen 干杯格伦

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM