View Code
調用:
在windows服務應用程式中的Program檔案
static class Program
{
/// <summary>
/// The main entry point for the application.
/// </summary>
public static void Main(string[] args)
{
WinServiceController.State<Service1>("windows服務應用程式exe名稱", args);
}
}
<a href="http://www.cnblogs.com/yanweidie/p/3542670.html" target="_blank">http://www.cnblogs.com/yanweidie/p/3542670.html</a>