Skip to content

Instantly share code, notes, and snippets.

@hoetz
Created May 13, 2013 14:45
Show Gist options
  • Select an option

  • Save hoetz/5568826 to your computer and use it in GitHub Desktop.

Select an option

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

hoetz commented May 13, 2013

Copy link
Copy Markdown
Author

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