C Sharp Test Question 2

You create a Windows service application that consists of two services. One service monitors a directory for new orders and the other service replicates a database table with the most up-to-date inventory information.

You need to develop a project installer class to install these services.

What should you do? (Each correct answer presents part of the solution. Choose two.)

C Sharp Question 2

C Sharp Question 2

The ServiceProcessInstaller class installs an executable containing services. The ServiceInstaller class installs a class that implements a service.

When creating a project installer class, you need to instantiate one ServiceProcessInstaller instance per service application, and one ServiceInstaller instance for each service in the application.

The ComponentInstaller class specifies an installer that copies properties from a component to use at install time. This class is an abstract class and cannot be instantiated.

Objective:
 
Implementing service processes, threading, and application domains in a .NET Framework application

Sub-Objective:
2.1 Implement, install, and control a service. (Refer System.ServiceProcess namespace)