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