public void test_diorexportprocessor() { var hos = HeadOffice.ParseList("250, 123171; 250, 131969; 250, 137261; 250, 139245;"); DiorExportProcessor p = new DiorExportProcessor(hos); p.Run(); }
private void DiorFileSystemWatcher_Created(object sender, FileSystemEventArgs e) { Task.Factory.StartNew(() => { var hostr = ConfigurationManager.AppSettings["DiorHOs"]; var hos = HeadOffice.ParseList(hostr); var proc = new DiorExportProcessor(hos); proc.Run(); }, TaskCreationOptions.LongRunning); Thread.Sleep(1000); if (File.Exists(e.FullPath)) { File.Delete(e.FullPath); } }