InfiniTec - Henning Krauses Blog

Don't adjust your mind - it's reality that is malfunctioning

Using Streaming Notifications with Exchange 2010

That is the title of an article I wrote for Microsoft. It has been published here a few days ago:

Summary: Streaming notifications, which combine the functionalities of push and pull notifications, are new in Microsoft Exchange Server 2010 Service Pack 1 (SP1). This article explains how streaming notifications work and when to use them.

The code sample is missing, but that will be fixed in a few days.

Posted by Henning Krause on Friday, July 15, 2011 7:50 PM, last modified on Saturday, July 30, 2011 10:38 PM
Permalink | Post RSSRSS comment feed

Comments (7) -

On 7/30/2011 9:48:40 PM Mike wrote:


Awesome article.

No where else on the internet did I find such an in depth article about essentially never missing mailbox activity with the syncing functionality.

Also, the link "Exchange Server 2010 Development (Part 6 of 6): Best Practices for Building Scalable Exchange Server Applications" appears to have been moved to .

Lastly, will the code be available soon?

On 7/30/2011 10:38:41 PM Mike wrote:


Not sure where my previous comment went. But will the code be available soon? I'm particularly interested in seeing how to implement both streaming notifications and manual syncing. It appears as if even though you process emails in a notification handler that your sync state becomes stale and will return emails that have already been processed..

What am I missing?

On 7/30/2011 10:51:13 PM hkrause wrote:


The sample code will hopefully be published in a week or two.

On 8/1/2011 6:52:20 PM Mike wrote:


Thanks for the reply. Look forward to seeing it.

On 8/6/2011 7:11:54 PM Mike wrote:


In the mean time is the only way to keep a fresh sync state is to call SyncFolderItems() on every notification event and pass the item ids from the notifications to ignore? That's the current idea I'm messing with. Because if you call for example SyncFolderItems() every hour then you may receive ItemId's that you've already received notifications for.

On 2/24/2012 5:59:06 PM sumair wrote:



Quick question:
I reused the code, can see the new email being created {Console.Out.WriteLine("ChangeType = {0}", itemChange.ChangeType + DateTime.Now.ToShortTimeString());}

but can't see the OnNotificationEvent(object sender,  NotificationEventArgs args) function being called

kindly let me know what am I missing here....


On 12/17/2012 4:31:00 PM Martin wrote:


Hya, absolutly great stuff. Thank you very much.

It helps me much with my project. I only have a short question regarding mixed mode: I used this to replace some old exchange Event Sinks on Public Folders. If i create a new PubFolder on Exchange 2010 SP2 it works superb. But i can not run it on Public Folders that comes from the Ex2003. After i replicate this folder to 2010 and delete the replication from ex2003, the Notification dont fire anything. I also can see this behaivior with microsoft EWS Editor- if i open the Streaming notification viewer and subscribe to the ex2003 folder, no events are showed in the viewer. With 2010 created Folders this works fine...

did i missed something?

 +Pingbacks and trackbacks (1)