private DeviceExtraction(DPConfiguration configuration, String configFile, ReferenceItem item, Case owner) { _configuration = configuration; ConfigurationFile = configFile; Path = System.IO.Path.GetDirectoryName(configFile); Reference = item; Owner = owner; Case.RegisterPath(Token, Path, () => Delete(true)); }
internal ExtractItem(XElement element, DeviceExtraction owner) { _element = element; Owner = owner; if (_element.Attribute("Mode") == null) { _element.Add(new XAttribute("Mode", null)); } if (_element.Attribute("Path") == null) { _element.Add(new XAttribute("Path", null)); } Case.RegisterPath(Token, Path, () => Delete(true)); }