EWS推送通知问题 [英] EWS Push Notification question

查看:103
本文介绍了EWS推送通知问题的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我有几个关于推送通知的问题。

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合作的项目。

我问的是同样的问题,如果没有回复,哪里有寻找这些问题答案的好地方?我一直在搜索四分之二和文档,我仍在疑惑。

谢谢,
克雷格
I just have been assigned to a project that is working with EWS. 

I am asking these same questions, if there really is no response, where is a good place to look for answers to these questions?  I've been scouring the fourms and documentation and am still wondering.

Thanks,
Craig


这篇关于EWS推送通知问题的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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