How to use the code sample:
Enter your microsoft windows azure account or msdn subscription id in web.config/app_settings/SubscriptionId. If you don't have an account, you can get a trail one for three months: https://www.windowsazure.com/en-us/pricing/free-trial/
Create a personal certificate on your machine, upload it to your azure account from the portal (scroll to the bottom of the menu list on settings and there click on manage certificates tab). Copy the certificate somewhere visible to your application and put the path to web.config/app_settings/CertificatePath
Run the application.
!!!Please note!!! This is NOT production ready code. It's intended for educational purposes.