System.ServiceProcess Namespace


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.




Professional C# 2005 with .NET 3.0
Professional C# 2005 with .NET 3.0
ISBN: 470124725
EAN: N/A
Year: 2007
Pages: 427

flylib.com © 2008-2017.
If you may any questions please contact us: flylib@qtcs.net