protected void when_publishing_package(InMemoryFile package)
 {
     using (var stream = package.OpenRead())
     using(var publisher = Repository.Publisher())
         publisher.Publish(package.Name, stream);
 }
예제 #2
0
 public Stream OpenStream()
 {
     var package = new InMemoryFile(@"c:\test.wrap");
     Packager.NewWithDescriptor(package, Name, Version.ToString(), Dependencies.Select(x => "depends: " + x).ToArray());
     return package.OpenRead();
 }