Flint.Core.Bundles.AppBundle.LoadData C# (CSharp) Метод

LoadData() защищенный Метод

protected LoadData ( IZip zip ) : void
zip IZip
Результат void
        protected override void LoadData(IZip zip)
        {
            if (string.IsNullOrWhiteSpace(Manifest.Application.Filename))
                throw new InvalidOperationException("Bundle does not contain pebble app");

            using (Stream binStream = zip.OpenEntryStream(Manifest.Application.Filename))
            {
                if (binStream == null)
                    throw new Exception(string.Format("App file {0} not found in archive", Manifest.Application.Filename));

                App = Util.GetBytes(binStream);

                AppMetadata = BinarySerializer.ReadObject<ApplicationMetadata>(App);
            }
        }