internal IEnumerable <PackageHeader> ListAll() { return(FailFunc.TryExecute(() => { var nv = HeaderCollectionDownload.ByEngine("dynamo"); var pkgResponse = this.client.ExecuteAndDeserializeWithContent <List <PackageHeader> >(nv); return pkgResponse.content; }, new List <PackageHeader>())); }
public PkgDownloader(string url) { var client = new GregClient(new Greg.AuthProviders.BasicProvider("test", "test"), url); var req = HeaderCollectionDownload.ByEngine("dynamo"); var response = client.ExecuteAndDeserializeWithContent <List <PackageHeader> >(req); Console.WriteLine("file downloaded from " + url + req.Path); Lists = response.content; }
private static void DownloadByEngineTest() { var nv = HeaderCollectionDownload.ByEngine("dynamo"); var pkgResponse = pmc.ExecuteAndDeserializeWithContent<List<PackageHeader>>(nv); Console.WriteLine(pkgResponse.content); }