コード例 #1
0
        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));
     }
 }
コード例 #3
0
        public virtual IFastZipPackage LoadStagedPackage(HashingWriteStream packageStream)
        {
            packageStream.Dispose();

            return(FastZipPackage.Open(packageStream.FileLocation, packageStream.Hash));
        }
コード例 #4
0
 protected override IPackage OpenPackage(string path)
 {
     return(FastZipPackage.Open(path, HashProvider));
 }