예제 #1
0
        private static void processThread()
        {
            LOGGER.Info("============ DTADataImportService.processThread() start! ================");

            //if ("stop".Equals(ConfigurationManager.AppSettings.Get("windows_service_status")))
            //{
            //    LOGGER.Info("processThread ready for breaking!");
            //    break;
            //}
            //if (hasSameProcess())
            //{
            //    return;
            //}
            string run_quartz = ConfigurationManager.AppSettings.Get("run_quartz");

            if ("true".Equals(run_quartz))
            {
                IExample example = new XmlConfigurationExample();
                example.Run();
            }
            else
            {
                new ProcessImport().process();
            }

            LOGGER.Info("================ DTADataImportService.processThread() end! ================");
        }
예제 #2
0
        static void Main(string[] args)
        {
            string run_quartz = ConfigurationManager.AppSettings.Get("run_quartz");

            if ("true".Equals(run_quartz))
            {
                IExample example = new XmlConfigurationExample();
                example.Run();
            }
            else
            {
                new ProcessImport().process();
            }
        }