Esempio n. 1
0
        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();
                }
            }
        }
Esempio n. 2
0
 public VersionData GetLatestVersionInfo(Uri location)
 {
     return(VersionManifestLoader.LoadData(location.LocalPath));
 }