Method | Description | |
---|---|---|
ServiceRun ( |
构造函数
|
|
StarUpService ( string args, string serviceName, |
开始运行服务
|
Method | Description | |
---|---|---|
OnStart ( string args ) : void |
重载windows服务的启动函数,调用服务启动类的Start函数
|
|
OnStop ( ) : void |
重载windows服务停止函数,调用服务启动类的Stop函数
|
Method | Description | |
---|---|---|
InitializeComponent ( string serviceName ) : void |
服务运行的初始化
|
public ServiceRun ( |
||
init | 服务初始化类 | |
Name | string | 服务的名字 |
return | System |
public static StarUpService ( string args, string serviceName, |
||
args | string | args |
serviceName | string | 服务名 |
serviceInit | 服务初始化 | |
return | void |