请高手解释这个C#程序,其中ServiceBase是windows服务基类,SmsService是
ServiceBase的子类。
static void Main()
{
ServiceBase[] ServicesToRun;
ServicesToRun = new ServiceBase[]
{
new SmsService()
};
ServiceBase.Run(ServicesToRun);
}
ServiceBase的子类。
static void Main()
{
ServiceBase[] ServicesToRun;
ServicesToRun = new ServiceBase[]
{
new SmsService()
};
ServiceBase.Run(ServicesToRun);
}