예제 #1
0
 public IPackage Load()
 {
     if (_cachedPackage == null)
     {
         new FastZip().ExtractZip(_wrapFile.FullName, _cacheDirectory, FastZip.Overwrite.Always, x => true, null, null, true);
         _cachedPackage = new UncompressedPackage(_wrapFile, _cacheDirectory, _builders);
     }
     return _cachedPackage;
 }
예제 #2
0
        public override IPackage Load()
        {
            if (_cachedPackage == null)
            {
                if (!ExtractPackage(PackageFile, _cacheDirectoryPathPath)) return null;

                _cachedPackage = new UncompressedPackage(Source, PackageFile, _cacheDirectoryPathPath, _builders);
            }
            return _cachedPackage;
        }
예제 #3
0
 public override void when_creating_package()
 {
     this._package = new UncompressedPackage(NullRepository.Instance, _packageFile, _packageDirectory);
 }