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")); }
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")); }
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)); }