Chapter 7. Windows Services

Terms you'll need to understand:

  • Windows service

  • The ServiceBase class

  • The ServiceProcessInstaller class

  • The ServiceInstaller class

  • The ServiceController class

Techniques you'll need to master:

  • Creating a Windows service

  • Installing a Windows service

  • Connecting to a Windows service and issuing messages such as start, stop, pause, and continue

  • Querying a Windows service to retrieve its status

Introduction

Many applications, such as email servers and print spoolers, need to continuously run in the background. In Windows, such applications are called as a Windows service. In this chapter, you learn how to use the .NET Framework class libraries to create and use Windows services.

Understanding Windows Services

A Windows service is a process ...

Get Developing XML Web Services and Server Components with Visual C# .NET and the .NET Framework, Exam Cram 2 (Exam 70-320) 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.