You work as an application developer at Certkiller .com. You have been given the task of developing a Windows service application that regularly monitors other Windows services on the same computer. This Windows service application must also log any abnormal file system activity. You have added the following class to the Windows service application: public class EnumerateService : ServiceBase { public static EnumerateService () { this.ServiceName = "Enumerate Service"; this.CanStop = true; } protected override void OnStart (string[]
A、 Override the OnBoot method instead of the OnStart method.
B、 Replace the Main method code with the following code: EnumerateService service = new EnumerateService (); Service.Run ();
C、 Override the OnLoad method instead of the OnStart method.
D、 Replace the Main method code with the following code: EnumerateService service = new EnumerateService (); Run (service);