I am working with an application that will call OData Service. I tried Simple.OData.Client, but I can't get it to work.
Here is the code I'm trying
var client = new ODataClient("http://packages.nuget.org/v1/FeedService.svc/");
var packages = await client.FindEntriesAsync("Packages?$filter=Title eq 'Simple.OData.Client'");
foreach (var package in packages)
{
Console.WriteLine(package["Title"]);
}
I get this error
Error 1 The wait statement can only be used in the asynchronous method. Consider labeling this method with the async modifier and change its return type to Task.
source
share