WCF
上个月发布了一个WP8.1应用:NuGet Search,并在GitHub开了源:https://github.com/EdiWang/WP-NuGetSearch
NuGet的服务接口是个WCF OData Service,我尝试使用了跨Framework的PCI工程,结果no zuo no die了。和一般.NET类库不同,PCL有些tricky的地方要爆。下面是开荒成功的代码:
public async Task GetDataAsync(string searchTerm, int pageIndex, bool includePreRelease = false)
{
try
{
IDictionary queryOptions = new Dictionary {
{ "filter",