protected virtual IPackage OpenPackage(string path)
        {
            if (DisablePackageHash)
            {
                return(FastZipPackage.Open(path, new byte[0]));
            }

            return(FastZipPackage.Open(path, HashProvider));
        }
예제 #2
0
 protected override IPackage OpenPackage(string path)
 {
     if (DisablePackageHash)
     {
         return(FastZipPackage.Open(path, new byte[0]));
     }
     else
     {
         return(FastZipPackage.Open(path, HashProvider));
     }
 }
        public virtual IFastZipPackage LoadStagedPackage(HashingWriteStream packageStream)
        {
            packageStream.Dispose();

            return(FastZipPackage.Open(packageStream.FileLocation, packageStream.Hash));
        }
 protected override IPackage OpenPackage(string path)
 {
     return(FastZipPackage.Open(path, HashProvider));
 }