问题描述
我有几个关于推送通知的问题。
1。如果我需要跟踪1000个用户的收件箱,我是否需要创建1000个绑定?什么是Exchange Server的绑定限制?
2。推送通知的"StatusFrequency"和"StatusFrequency"。是一个整数,这是否意味着我得到的最快通知是每分钟?
3。收到事件后,我们将什么发送回Exchange Server?
4。当我们拆除应用程序时,我们是否需要取消订阅,例如Pull Notification?
5。在下面的示例代码中,我们知道ItemId是什么,我们可能需要调用GetItem来找出项目是什么。但是我们如何知道项目是创建,删除还是新建?
//访问创建,删除或新邮件事件的事件信息。
public static void AccessCreateDeleteNewMailEvent(BaseObjectChangedEventType bocet)
{
//获取事件的水印。 > string watermark = bocet.Watermark;
//获取事件的时间戳。
DateTime timestamp = bocet.TimeStamp;
//获取父文件夹标识符。
FolderIdType parentFolderId = bocet.ParentFolderId;
//获取
//创建/删除/新邮件事件的文件夹或项标识符。
if(bocet.Item是ItemIdType)
{
//获取项标识符。
ItemIdType itemId = bocet.Item as ItemIdType;
}
获取文件夹标识符。
FolderIdType folderId = bocet.Item as FolderIdType;
}
提前谢谢,
I have several questions about Push Notification.
1. If I need to keep track of 1000 users' inbox, do I need to create 1000 bindings? What's the Exchange Server's limit in bindings?
2. The Push Notification's "StatusFrequency" is an integer, does that mean the fastest notification I get is every minute?
3. After an event is received, what do we send back to the Exchange Server?
4. When we tear down the application, do we need to unsubscribe like the Pull Notification?
5. In the sample code below, we know what the ItemId is, and we probably need to call GetItem to find out what the item is. But How do we know if the item is created, deleted, or new?
// Access event information for create, delete, or new mail events.
public static void AccessCreateDeleteNewMailEvent(BaseObjectChangedEventType bocet)
{
// Get the watermark for the event.
string watermark = bocet.Watermark;
// Get the timestamp for the event.
DateTime timestamp = bocet.TimeStamp;
// Get the parent folder identifier.
FolderIdType parentFolderId = bocet.ParentFolderId;
// Get either the folder or item identifier for a
// create/delete/new mail event.
if (bocet.Item is ItemIdType)
{
// Get the item identifier.
ItemIdType itemId = bocet.Item as ItemIdType;
}
else
{
// Get the folder identifier.
FolderIdType folderId = bocet.Item as FolderIdType;
}
}
Thanks in advance,
推荐答案
这篇关于EWS推送通知问题的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持!