You create a service application that monitors free space on a hard disk drive. You must ensure that the service application runs in the background and monitors the free space every minute. What should you do?()
- A、Add code to the default constructor of the Service class to monitor the free space on the hard disk drive.
- B、Add code to the OnStart method of the Service class to monitor the free space on the hard disk drive.
- C、Add an instance of the System.Windows.Forms.Timer class to the Service class and configure it to fire every minute.
- D、Add an instance of the System.Timers.Timer class to the Service class and configure it to fire every minute.
- E、Add code to the OnStart method of the Service class to start the timer.
- F、Add code to the Elapsed event handler of the timer to monitor the free space on the hard disk drive.
- G、Add code to the Tick event handler of the timer to monitor the free space on the hard disk drive.
正确答案:D,E,F
答案解析:有

微信扫一扫手机做题