Writing a Windows Service
You can use the classes in the System.ServiceProcess namespace to create new non–device driver services. (If you want to create a device driver service, you must resort to the Microsoft Windows Driver Development Kit [DDK].) When you develop a service, you must also create a service installer that can be used to configure the service and create the appropriate Windows Registry keys. In this section, we’ll create a simple service called CakeService. This service will act as a remoting server that hosts the CakeUtils.CakeInfo class that we developed in Chapter 11. The CakeInfo class exposes the FeedsHowMany method, and we’ll test the service by creating a remoting client that invokes this method in the CakeService service. ...
Become an O’Reilly member and get unlimited access to this title plus top books and audiobooks from O’Reilly and nearly 200 top publishers, thousands of courses curated by job role, 150+ live events each month,
and much more.
Read now
Unlock full access