20 lines
710 B
C#
20 lines
710 B
C#
namespace AdapterTaskService
|
||
{
|
||
class Program
|
||
{
|
||
static void Main(string[] args)
|
||
{
|
||
Console.WriteLine("[" + DateTime.Now.ToString("yyyy-MM-dd HH:mm:ss") + "]启动TPMTaskService");
|
||
try
|
||
{
|
||
AdapterService service = new AdapterService();
|
||
service.Start();
|
||
Console.WriteLine("[" + DateTime.Now.ToString("yyyy-MM-dd HH:mm:ss") + "]启动TPMTaskService服务成功");
|
||
}
|
||
catch (Exception ex)
|
||
{
|
||
Console.WriteLine("[" + DateTime.Now.ToString("yyyy-MM-dd HH:mm:ss") + "]启动TPMTaskService服务失败,详情:" + ex.Message);
|
||
}
|
||
}
|
||
}
|
||
} |