public VersionData GetLatestVersionInfo(Uri location) { try { //var loc = new Uri(location + "/" + VersionManifest.VersionFileName); DownloadFile(location, null); if (_TempStream == null) { return(null); } _TempStream.Position = 0; StreamReader sr = new StreamReader(_TempStream); //return XmlSerializeHelper.DeserializeItem(sr.ReadToEnd(), typeof(VersionData)) as VersionData; return(VersionManifestLoader.LoadData(sr)); } finally { if (_TempStream != null) { _TempStream.Dispose(); } } }
public VersionData GetLatestVersionInfo(Uri location) { return(VersionManifestLoader.LoadData(location.LocalPath)); }