Example #1
0
 public XmlImportJob()
 {
     this.ImportMappings = new List <XmlMapping>();
     this.MappingSources = new XmlMappingSourceList();
     this.ImportType     = Enumerations.ImportJobType.Xml;
     this.DoWorkEvent   += this.initializeImport;
 }
Example #2
0
        public XmlImportJob(XmlMappingSourceList sources) : this()
        {
            if (!sources.Any())
            {
                throw new ArgumentException("ImportSources cannot be empty.", nameof(sources));
            }

            this.MappingSources = sources;
        }