皮皮学,免费搜题
登录
logo - 刷刷题
搜题
【单选题】
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[] args) { // Enumerate all services and initialize the FileSystemWatcher } protected override void OnStop () { // Stop the FileSystemWatcher and perform cleanup } public static void Main () { EnumerateService service = new EnumerateService(); } } You then create the installer for the Windows service application, and install the Windows service application. You have configured the Windows service Startup type to Automatic, and rebooted the system. You then test the new Windows service application, and find that it is not working.You need to ensure that the service is working properly. What should you do?()
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);
手机使用
分享
复制链接
新浪微博
分享QQ
微信扫一扫
微信内点击右上角“…”即可分享
反馈
参考答案:
举一反三
【单选题】男性,34岁,其血液中的HCO3-和H2CO3是最重要的一对缓冲物质,要使血浆pH值保持正常(7.40),两者的比值应保持在
A.
15:1
B.
20:1
C.
25:1
D.
30:1
E.
10:1
【判断题】应力是内力在截面上分布的密集程度( )。
A.
正确
B.
错误
【简答题】内力是材料内部分布力的合成值,内力在截面上分布的密集程度或强弱程度称为应力,应力单位 MPa 。 1MPa = ( ) Pa = ( ) N/mm 2 。 应力可分解成两大类:正应力 σ 是指 ( ) 于截面的应力;切应力 τ 是指 ( ) 于截面的应力。 构件上最大应力值对应的点称之 ( ) 。 针对截面为圆形的轴类零件,轴向拉压变形其危险截面上 均匀分布 (截...
【判断题】应力是指构件内力在截面上的分布集度( )
A.
正确
B.
错误
【简答题】简析江南私家园林留园的景观特色。
【多选题】关于发动机喷油时间的确定,下列说法哪些正确?
A.
起动时,主要取决于冷却液温度
B.
起动后,主要取决于每工作循环的进气量
C.
蓄电池电压低时,喷油时间将适当加大
D.
发动机正常工作时,主要取决于氧传感器信号
E.
冷却液温度低时,喷油时间将适当加大
【判断题】应力是分布内力在一点的集度, 应变反应了各点变形程度。
A.
正确
B.
错误
【判断题】应力是指构件在外力作用下截面上内力的分布集度。
A.
正确
B.
错误
【判断题】应力是内力在一点处的分布集度,所以其单位同力的单位,通常用N表示。
A.
正确
B.
错误
【判断题】应力是内力在截面上某一点的分布集度。( )
A.
正确
B.
错误
相关题目:
参考解析:
知识点:
题目纠错 0
发布
创建自己的小题库 - 刷刷题