Exemplo n.º 1
0
 public UncompressedPackage(FileInfo originalPackage, string wrapCacheDirectory, IEnumerable<IExportBuilder> exporters)
 {
     _originalWrapFile = originalPackage;
     _exporters = exporters;
     BaseDirectory = new DirectoryInfo(wrapCacheDirectory);
     // get the descriptor file inside the package
     var descriptorName = BaseDirectory.Name;
     Descriptor = new WrapDescriptorParser().ParseFile(Path.Combine(wrapCacheDirectory, descriptorName + ".wrapdesc"));
 }
Exemplo n.º 2
0
 public FolderWrapPackage(FileInfo originalWrapFile, string folderPath, IEnumerable<IExportBuilder> exporters)
 {
     _originalWrapFile = originalWrapFile;
     _exporters = exporters;
     BaseDirectory = new DirectoryInfo(folderPath);
     // get the descriptor file inside the package
     var descriptorName = BaseDirectory.Name;
     Descriptor = new WrapDescriptorParser().ParseFile(Path.Combine(folderPath, descriptorName + ".wrapdesc"));
 }
Exemplo n.º 3
0
        void NotifyClient(string wrapPath, IWrapAssemblyClient client)
        {
            if (!_notificationClients.ContainsKey(wrapPath))
                return;
            var d = _notificationClients[wrapPath];

            var parsedDescriptor = new WrapDescriptorParser().ParseFile(wrapPath);

            client.WrapAssembliesUpdated(_resolver.GetAssemblyReferences(parsedDescriptor, d.Repository, client));
        }