public void DeployDependency(IPackageInfo resolvedPackage,
     IPackagePublisher publisher)
 {
     var source = resolvedPackage.Load();
     using (var packageStream = source.OpenStream())
         publisher.Publish(resolvedPackage.FullName + ".wrap", packageStream);
 }
예제 #2
0
        public void DeployDependency(IPackageInfo resolvedPackage,
                                     IPackagePublisher publisher)
        {
            var source = resolvedPackage.Load();

            if (source == null)
            {
                throw new InvalidPackageException("The package could not be opened.");
            }
            using (var packageStream = source.OpenStream())
                publisher.Publish(resolvedPackage.FullName + ".wrap", packageStream);
        }
예제 #3
0
 public void DeployDependency(IPackageInfo resolvedPackage,
     ISupportPublishing destinationRepository)
 {
     var source = resolvedPackage.Load();
     using (var packageStream = source.OpenStream())
         destinationRepository.Publish(resolvedPackage.FullName + ".wrap", packageStream);
     destinationRepository.RefreshPackages();
 }
예제 #4
0
 public IPackage Load()
 {
     return(_packageInfo.Load());
 }