Summary


In this chapter, you have seen what Windows Services are and how you can create them with the .NET Framework. Applications can start automatically at boot time with Windows Services, and you can use a privileged system account as the user of the service.

The .NET Framework has great support for Windows Services. All the plumbing code that’s necessary for building, controlling, and installing services is built into the .NET Framework classes in the System .ServiceProcess namespace. By deriving a class from ServiceBase, you can override methods that are invoked when the service is paused, resumed, or stopped. For installation of services, the classes ServiceProcessInstaller and ServiceInstaller deal with all registry configurations needed for services. You can also control and monitor services by using ServiceController.




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