Пример #1
0
        public DirectoryWatcher()
        {
            this.dataProcessor = new XMLDataProcessor();
              this.pdfProcessor = new PDFProcessor();

              this.CheckDirectory();

              this.xmlWatcher = new FileSystemWatcher();
              this.xmlWatcher.Path = Parameters_DataProcessor.XmlInboxRoot;
              this.xmlWatcher.IncludeSubdirectories = true;
            this.xmlWatcher.InternalBufferSize = 64000;

              this.xmlWatcher.Created += new FileSystemEventHandler(watcher_Created);
        }
Пример #2
0
        public DirectoryWatcher()
        {
            this.dataProcessor = new XMLDataProcessor();
            this.pdfProcessor  = new PDFProcessor();

            this.CheckDirectory();

            this.xmlWatcher      = new FileSystemWatcher();
            this.xmlWatcher.Path = Parameters_DataProcessor.XmlInboxRoot;
            this.xmlWatcher.IncludeSubdirectories = true;
            this.xmlWatcher.InternalBufferSize    = 64000;

            this.xmlWatcher.Created += new FileSystemEventHandler(watcher_Created);
        }