public IEnumerable <CurveRange> MetadataRequestVersioned(string curveId, string provider, LocalDateTime start, LocalDateTime end) { Console.WriteLine("Requesting versioned metadata..."); var _cfg = _config(provider); var mds = new MetaDataService(_cfg); var numVersions = mds.ReadCurveRangeAsync(Convert.ToInt32(curveId), 1, 1, null, start, end).Result; // Get number of available curves. var versions = mds.ReadCurveRangeAsync(Convert.ToInt32(curveId), 1, Convert.ToInt32(numVersions.Count), null, start, end).Result.Data; //Console.WriteLine("Versions"); //foreach (var v in versions) //{ // Console.WriteLine(v.Version); //} //Console.WriteLine("Total : " + versions.Count()); return(versions); }