A.在安裝之前,請將ServiceInstaller類的啟動類型屬性的設置。 B.在安裝之前,請設置帳戶、用戶名和密碼ServiceProcessInstaller類的屬性。 C.使用net.exe命令行工具的配置選項來安裝服務。 D.使用installutil.exe命令行工具來安裝服務。
最近,您創(chuàng)建了一個應用程序,包括如下所示的代碼。 public delegate string GetFileContentsDel (); public string GetFileContents () { //Process file and return results } 現(xiàn)在,您需要以異步方式調(diào)用 GetFileContents 方法。 您必須確保您用來調(diào)用 GetFileContents 方法的代碼將繼續(xù)處理其他用戶的說明,并顯示結(jié)果,盡快完成的 GetFileContents 方法的處理。你應該做什么?()
A. B. C. D.
創(chuàng)建 Windows 服務應用程序的目的是監(jiān)測活動的數(shù)量 Certkiller.com 的服務器上運行的服務請求。 要配置該 Windows 服務應用程序,提交一份報告,每隔十分鐘。 你開始通過將報告邏輯放置在該 Windows 服務的 GenerateReport 方法。 您要創(chuàng)建一個計時器對象調(diào)用此方法每隔十分鐘。 你應該做什么?()
A.TimertmrReport=newTimer(newTimerCallback(GenerateReport),null,600000,0); B.TimertmrReport=newTimer(newTimerCallback(GenerateReport),null,10,0); C.TimertmrReport=newTimer(newTimerCallback(GenerateReport),null,0,600000); D.TimertmrReport=newTimer(newTimerCallback(GenerateReport),null,0,10);