Creating a Windows Service Application

Create and manipulate a Windows service: Write code that is executed when a Windows service is started or stopped.

In this section, you use the ServiceBase class to create a Windows service application. You'll learn

  • About the ServiceBase class and its functionality.

  • How the SCM interacts with a Windows service derived from the ServiceBase class.

  • How to create a Windows service by deriving a class from the ServiceBase class.

The System.ServiceProcess.ServiceBase Class

Programmatically, a Windows service is a class that derives its basic functionality from the ServiceBase class of the System.ServiceProcess namespace. The ServiceBase class provides its derived classes with some well-known methods and properties. ...

Get MCAD/MCSD Training Guide (70-320): Developing XML Web Services and Server Components with Visual C#™ .NET and the Microsoft .NET Framework now with the O’Reilly learning platform.

O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.