Created
May 13, 2013 14:45
-
-
Save hoetz/5568826 to your computer and use it in GitHub Desktop.
Scriptcs + StreamO = Exchange notifications done easy
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
scriptcs -install StreamO | |
scriptcs | |
> using StreamO; | |
> using Microsoft.Exchange.WebServices.Data; | |
> var cred = new WebCredentials("[email protected]","password"); | |
> var listener=new StreamingListener(cred,(eventData)=>{ Console.WriteLine("Event incoming for "+eventData.Sender.ToString()); }); | |
> listener.AddSubscription("[email protected]"); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Install scriptcs as described here: https://github.com/scriptcs/scriptcs
More on StreamO here: https://github.com/hoetz/StreamO