Pro Visual C++ 2005 for C# Developers
In the .NET Framework, you can find service classes in the System.ServiceProcess namespace that implement the three parts of a service:
-
You have to inherit from the ServiceBase class to implement a service. The ServiceBase class is used to register the service and to answer start and stop requests.
-
The ServiceController class is used to implement a service control program. With this class you can send requests to services.
-
The ServiceProcessInstaller and ServiceInstaller classes are, as their names suggest, classes to install and configure service programs.
Now you are ready to create a new service.
Категории