我正在尝试将 Netflix Odata 服务与 WP71 一起使用,但它无法正常工作。这段代码有什么问题?
私有常量字符串 NETFLIX_CATALOG_URI = "http://odata.netflix.com/v2/Catalog/";
public ObservableCollection<Title> SearchByTitle(string searchKey)
{
NetflixCatalog catalog = new NetflixCatalog(new Uri(NETFLIX_CATALOG_URI));
var query = catalog.Titles.Where(t => t.Name.Contains(searchKey));
DataServiceCollection<Title> titles = new DataServiceCollection<Title>(catalog);
titles.LoadAsync(query);
return titles;
}