CodePaste Logo
New Snippet New Recent Snippets Recent Snippets My Snippets My Snippets My Favorites Favorites Web Code Search Snippets Search
Sign inor Register
Language: csharp

Create Azure Marketplace OData Context in Windows Phone

// private const string AZUREDATAACCOUNT = "Your Customer ID"; private const string AZUREDATAKEY = "Your Account Key"; private const string AZUREDATAURL = ""; // create a new context to the odata feed private static Mango.Sample.AzureMarket .CityCrimeService.datagovCrimesContainer GetContext() { var _Uri = new Uri(AZUREDATAURL); var _Context = new Mango.Sample.AzureMarket .CityCrimeService.datagovCrimesContainer(_Uri) { Credentials = new NetworkCredential(AZUREDATAACCOUNT, AZUREDATAKEY) }; return _Context; }
by Jerry Nixon
  November 07, 2011 @ 3:28pm
Add a comment

Report Abuse
brought to you by:
West Wind Techologies