public FileService(string searchDir, IPdfDocumentBuilder documentBuilder)
     : this(
         searchDir,
         Path.GetDirectoryName(Process.GetCurrentProcess().MainModule.FileName),
         documentBuilder)
 {
 }
        public FileService(string searchDir, string outDir, string badFilesDir, IPdfDocumentBuilder documentBuilder)
        {
            _searchDir       = searchDir;
            _documentBuilder = documentBuilder;
            _outDir          = outDir;
            _badFilesDir     = badFilesDir;
            _logger          = LogManager.GetCurrentClassLogger();
            if (!Directory.Exists(_searchDir))
            {
                Directory.CreateDirectory(_searchDir);
            }

            _stopWorkEvent = new ManualResetEvent(false);
        }
Esempio n. 3
0
 public PersonsPdfDocumentGenerator(IPdfDocumentBuilder documentBuilder,
                                    IDocumentContentMapper <IPdfDocumentBuilder, IEnumerable <Person> > documentContentMapper) : base(
         documentBuilder, documentContentMapper)
 {
 }