123456789101112131415161718192021222324252627 |
- using Cksoft.Unity.Log4NetConfig;
- using System;
- using System.Threading;
- namespace MachineMaterialHandler
- {
- class Program
- {
- static void Main(string[] args)
- {
- LogHelper<Program>.LogFatal("解析文件服务启动成功", "抛料文件解析", string.Empty);
- while (true)
- {
- try
- {
- var hanlder = new MachineMaterialStatusHandler();
- hanlder.StartAnalysis();
- Thread.Sleep(60 * 1000 * 10);
- }
- catch (Exception e)
- {
- continue;
- }
- }
- }
- }
- }
|