Hi,
I am looking for a good sample to use streaming notifications with an impersonate scenario to Exchange Online. There is a lot of information available, but I miss some pieces.
Basically, I am creating an application which logs in to Exchange Online with the impersonation account. When a user logs into the application, a new streaming notification will be created to his/her own mailbox. Events will be trapped to process the notifications per user.
I suspect I have to create a pool of Exchange connections to enable this, but I really would like to just use one ExchangeService object. I read somewhere that you can switch the property "ImpersonatedUserId" (which is the mailbox to which you want to subscribe to) on an open connection, but I'm not clear on the workings of this.
Also, I noticed you can create FolderId's with the Microsoft.Exchange.WebServices.Data.FolderId with a well known folder name AND mailbox as parameters. Does this mean you can create a StreamingSubscription object with several folderId's targeting different mailboxes?
Anyway, just a code sample would do as well I guess...:)
Regards,
Ruud