日期:2014-05-16 浏览次数:20387 次
static void Main(string[] args)
{
Thread.Sleep(1000);
try
{
LogWrapper logWrapper = new LogWrapper();
//写入日志文件,本地
logWrapper.BuildLogFile("ServiceStart------------------------------", "Pause 1s", SqsHost, DBHost, "", "", "", "", "", "", "", "", "", "", "");
}
catch
{
}
//通过委托调用 Commit 方法
timer.Elapsed += new System.Timers.ElapsedEventHandler(Commit);
timer.AutoReset = true;
timer.Enabled = true;
timer.Start();
}