Override the OnBoot method instead of the OnStart method.
Replace the Main method code with the following code: EnumerateService service = new EnumerateService (); Service.Run ();
Override the OnLoad method instead of the OnStart method.
Replace the Main method code with the following code: EnumerateService service = new EnumerateService (); Run (service);
第1题:
Your company has 1,000 client computers. You are planning to deploy Windows 7 and a new line-of-business application. You have the following requirements: Install the application as part of the standard Windows 7 deployment. Use a single Windows 7 image for the deployment. The application must be available for use on client computers that are not connected to the network. You need to ensure that the application is installed on all new client computers. What should you do?()
第2题:
You recently installed an application on your computer. The application is configured to automatically start. This application might cause your computer to run slower. You need to prevent the application from auto starting without uninstalling the application. What should you do?()
第3题:
You are developing an application that performs file backups in the background. The background application will host a Windows Communication Foundation (WCF) service and must be active as soon as the machine is running. The background application will not have a user interface. A front-end application will consume the WCF service and will provide the user interface.You need to choose a host environment for the WCF service.Which hosting environment should you choose? ()
A. Microsoft Internet Information Services (IIS) 6.0
B. Windows Process Activation Services (WAS)
C. A Windows Forms application
D. A Windows Service
第4题:
You work as the application developer at Certkiller .com. Certkiller .com uses Visual Studio.NET 2005 as its application development platform. You are developing a .NET Framework 2.0 Windows Service application and are busy writing the following installation code for the Windows service:
第5题:
You work as the application developer at Certkiller .com. Certkiller .com uses Visual Studio.NET 2005 as its application development platform. You are developing a Windows Service application. You need to change the security context in which the service runs. The service will be run in context of a non-privileged user on the local computer and present anonymous credentials to any remote server. You are required to set the Account property of the ServiceProcessInstaller class to specify the service account. What should you do?()
第6题:
You are designing a Windows Azure application. The application will include services hosted in different geographic locations. The service locations may change. You must minimize the cost of communication between services. You need to recommend an approach for calling the services. What should you recommend?()
第7题:
You are planning to migrate an existing web application to Windows Azure. The application consists of an ASP.NET web application and a set of native Win32 Windows Services that provide data to the application by using named pipes. The Windows Services cannot be modified. You need to recommend a strategy for migrating the application to Windows Azure. What should you recommend?()
第8题:
You work as an application developer at Certkiller .com. Certkiller .com has asked you to develop an application that monitors and controls the activities of a Windows service.You need to use the appropriate class to meet Certkiller .com’s requirements. What should you do?()
第9题:
Your network contains a server that runs Windows Server 2003 Service Pack 2 (SP2). The server has an application that runs as a service.The application fails intermittently. After each failure, you manually restart the service. You need to ensure that the application starts automatically after a failure. What should you do?()
第10题:
You are designing a Windows Azure web application. The application must integrate with on-premise business services. The business services are running on an on-premise server and cannot be rewritten. The business services are not exposed externally. You need to recommend an approach for accessing the business services. What should you recommend?()