/// <summary> /// Retreives the dependent file paths for the filekey/version (regardless of compression) /// </summary> /// <param name="fileKey"></param> /// <param name="version"></param> /// <returns></returns> public override IEnumerable <string> GetDependentFiles(string fileKey, int version) { if (string.IsNullOrEmpty(fileKey)) { throw new ArgumentNullException("fileKey"); } var x = FindItem(fileKey, version); try { if (x != null) { var file = new CompositeFileMap(fileKey, (string)x.Attribute("compression"), (string)x.Attribute("file"), x.Descendants("file") .Select(f => ((string)f.Attribute("name"))).ToArray(), int.Parse((string)x.Attribute("version"))); return(file.DependentFiles); } } catch { return(null); } return(null); }
/// <summary> /// Retreives the dependent file paths for the filekey/version (regardless of compression) /// </summary> /// <param name="fileKey"></param> /// <param name="version"></param> /// <returns></returns> public override IEnumerable<string> GetDependentFiles(string fileKey, int version) { if (string.IsNullOrEmpty(fileKey)) throw new ArgumentNullException("fileKey"); var x = FindItem(fileKey, version); try { if (x != null) { var file = new CompositeFileMap(fileKey, (string) x.Attribute("compression"), (string) x.Attribute("file"), x.Descendants("file") .Select(f => ((string) f.Attribute("name"))).ToArray(), int.Parse((string) x.Attribute("version"))); return file.DependentFiles; } } catch { return null; } return null; }