MCAD/MCSD Training Guide (70-310): Developing XML Web Services and Server Components with Visual Basic(R) .NET and the .NET Framework

   


You often need programs that continuously run in the background. For example, an email server is expected to continuously listen on a network port for incoming email messages, a print spooler is expected to continuously listen for print requests , and so on.

Most operating systems provide a way to create such long-running background tasks . In fact, operating systems themselves run a variety of background processes critical for their functionality. In Unix, the background tasks are called daemons. In Windows NT, the background tasks are called NT services, whereas in the Window 2000, XP, and Windows .NET operating systems, the background tasks are called Windows services.

Although Windows services are created as normal executable files, they have at least two distinct characteristics:

  1. Windows services must conform to the interface of the Service Control Manager (SCM). The SCM is a part of the Windows operating system responsible for managing Windows services.

  2. Windows services must be installed in the Windows service database before they can be used.

In this chapter, you'll use the .NET Framework class libraries to develop the following skills that will help you to create your own Windows services:


   
Top

Категории