예제 #1
0
        public void test_diorexportprocessor()
        {
            var hos = HeadOffice.ParseList("250, 123171; 250, 131969; 250, 137261; 250, 139245;");
            DiorExportProcessor p = new DiorExportProcessor(hos);

            p.Run();
        }
예제 #2
0
        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);
            }
        }