示例#1
0
        private static PackagePushResource CreatePackagePushResource(string destinationUrl)
        {
            PackageSource     packageSource = new PackageSource(destinationUrl);
            SourceRepository  repo          = new SourceRepository(packageSource, Repository.Provider.GetCoreV3());
            HttpSourcePrivate source        = HttpSourcePrivate.Create(repo);

            return(new PackagePushResource(destinationUrl, source));
        }
 public PackagePushResource(string source,
                            HttpSourcePrivate httpSource)
 {
     _source     = source;
     _httpSource = httpSource;
 }