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! ================"); }
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(); } }