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

898 Views   
// https://datamarket.azure.com/ private const string AZUREDATAACCOUNT = "Your Customer ID"; private const string AZUREDATAKEY = "Your Account Key"; private const string AZUREDATAURL = "https://api.datamarket.azure.com/Data.ashx/data.gov/Crimes/"; // 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
Tags:
Add a comment


Report Abuse
brought to you by:
West Wind Techologies