体检系统架构
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
 
 
 

27 lines
598 B

using DcmToPng.Helper;
using Timer = System.Timers.Timer;
Console.WriteLine(@"[--PACS检查报告图片转换同步工具--]");
try
{
ExecuteHelper.Execute();
Console.WriteLine("************");
var timer = new Timer();
timer.Interval = 60 * 60 * 1000; //min
timer.AutoReset = true;
timer.Elapsed += (s, e) =>
{
ExecuteHelper.Execute();
};
timer.Start();
Console.ReadKey();
}
catch (Exception e)
{
Console.WriteLine(e.Message);
Console.ReadKey();
}
Console.WriteLine($"【停止】{DateTime.Now:yyyy-MM-dd HH:mm}");
Console.ReadKey();