Skip to content

Instantly share code, notes, and snippets.

@hoetz
Created May 13, 2013 14:45
Show Gist options
  • Save hoetz/5568826 to your computer and use it in GitHub Desktop.
Save hoetz/5568826 to your computer and use it in GitHub Desktop.
Scriptcs + StreamO = Exchange notifications done easy
scriptcs -install StreamO
scriptcs
> using StreamO;
> using Microsoft.Exchange.WebServices.Data;
> var cred = new WebCredentials("serviceaccount@yourcompany.com","password");
> var listener=new StreamingListener(cred,(eventData)=>{ Console.WriteLine("Event incoming for "+eventData.Sender.ToString()); });
> listener.AddSubscription("florian.hoetzinger@yourcompany.com");
@hoetz
Copy link
Author

hoetz commented May 13, 2013

Install scriptcs as described here: https://github.com/scriptcs/scriptcs
More on StreamO here: https://github.com/hoetz/StreamO

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment