我爱Aspx >> Asp.Net >> Create and Control Windows Services--Not a Slap Shot, but Almost as Fast[等级:高级]Create and Control Windows Services--Not a Slap Shot, but Almost as Fast[等级:高级]
a Slap Shot, but Almost as Fast
Creating the service using .NET is fairly straightforward. You use the .NET Framework@#s System.ServiceProcess namespace and four classes within it: ServiceBase, ServiceInstaller, ServiceProcessInstaller, and ServiceController. These classes provide most of the functionality you need to create a service (see Figure 1).
Figure 1 | Everything You Need in One Namespace. Click here.
The ServiceBase class defines methods a derived class can override so the Service Control Manager can control a service—including OnStart(), OnStop(), OnPause(), and OnContinue(). Furthermore, a service can override the OnCustomCommand() function to carry out specific operations sent to it programmatically by an external service controller (more on this later). Implementing these functions in your derived class gives you the necessary structure of a service:
Ҷƪл˵?
Consuming a Webservice Part 2 ..[05-28]
Creating a Webservice Part 1 o..[05-28]
一个用webservice behavior实现的..[05-28]
加强 WEB SERVICE 的安全性[05-28]
WebService Behavior的一个中文B..[05-28]
Web服务到底是什么(转)[05-28]
WEB服务有待实践的检验[05-28]
一个webseveice的例子[05-28]
正确认识“Web服务”( 转)[05-28]
什么时候应该使用Web Service【转..[05-28]