You develop a Windows Communica

题目

You develop a Windows Communication Foundation (WCF) service to generate reports. Client applications call the service to initiate report generation but do not wait for the reports to be generated. The service does not provide any status to the client applications. The service class is defined as follows. (Line numbers are included for reference only.) 01 [ServiceContract] 02 public class ReportGeneratorService 03 { 04 ... 05 private int GenerateReports(int clientID) 06 { 07 ... 08 return 0; 09 } 10 } You need to ensure that client applications can initiate reports without waiting for status. Which two actions should you perform (Each correct answer presents part of the solution. Choose two.) ()。

  • A、Insert the following code at line 04. [OperationContract(IsOneWay=true)]
  • B、Insert the following code at line 04. [OperationContract(AsyncPattern=false)]
  • C、At line 05, change the GenerateReports method from private to public.
  • D、Remove line 08. At line 05, change the return type of GenerateReports method to void.
如果没有搜索结果或未解决您的问题,请直接 联系老师 获取答案。
相似问题和答案

第1题:

You are developing a Windows Service. The Windows Service will host a Windows Communication Foundation (WCF) service.The Windows Service class will inherit from ServiceBase.You need to ensure that the WCF service starts when the Windows Service is restarted.What should you do in the Windows Service class?()

A.

B.

C.

D.


参考答案:B

第2题:

You have an application that is incompatible with Windows Aero.You need to ensure that Windows Aero is automatically disabled when you run the application.What should you do?()

A.A

B.B

C.C

D.D


参考答案:C

第3题:

You develop a Windows Communication Foundation (WCF) service. It is used exclusively as an intranet application and is currently unsecured. You need to ensure that the service meets the following requirements: The service now must be exposed as an Internet application. The service must be secured at the transport level. Impersonation and delegation cannot be enabled.What should you use? ()

A. basicHttpBinding and HTTP

B. basicHttpBinding and Kerberos

C. wsHttpBinding and Kerberos

D. wsHttpBinding and HTTPS


参考答案:D

第4题:

You develop an ASP.NET web application that uses a Windows Azure web role. The application includes a startup script that installs a third-party component. You are developing a test plan for the startup script.  What should you recommend?()  

  • A、 Enable Remote Desktop Protocol (RDP) and deploy the application without the startup script.  Connect to the web role instance by using RDP, and then manually test the startup script.
  • B、 Deploy the application in the Windows Azure Compute Emulator.
  • C、 Deploy the application with a custom error page.
  • D、 Deploy the application and then use IntelliTrace.

正确答案:A

第5题:

You perform a clean installation of Microsoft Windows Vista on the first partition. Then, you install Microsoft Windows XP Professional on the second partition of the same machine.You are able to log on to Windows XP Professional but do not have the option to boot to Windows Vista.You need to be able to dual boot the computer.What should you do?()

A.A

B.B

C.C

D.D


参考答案:B

第6题:

You develop a Windows Communication Foundation (WCF) service. You enable all performance counters and run multiple calls to the service.The service must isolate session data to each user. You need to monitor the instancing behaviour used in the service.Which performance counter should you monitor?()

A. ServiceModeService 4.0.0.0\Calls

B. ServiceModeService 4.0.0.0\Instances

C. ASP.Net StateService \ Server Sessions Active

D. ASP.Net StateService \ Server Sessions Total


参考答案:B

第7题:

You perform an in-place upgrade on a Microsoft Windows XP Service Pack 2 (SP2) computer to Windows Vista.After the upgrade, you attempt to run a custom application. You receive the following error message: This application is only designed to run on Windows XP or later.”You need to run the application on Windows Vista.What should you do?()

A.A

B.B

C.C

D.D


参考答案:D

第8题:

You develop a Windows Communication Foundation (WCF) service. You name the service MovieService in the Movie namespace. The service is hosted in Microsoft Internet Information Services (IIS). You copy the assembly containing the service to the bin folder in the virtual directory path.You need to set up the URI that is mapped to the service.What should you do?()

A.

B.

C.

D.


参考答案:C

第9题:

In order to()your goals, you must work hard.

  • A、make
  • B、achieve   
  • C、require
  • D、develop

正确答案:B

第10题:

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?()

  • A、 Use the ServiceBase class.
  • B、 Use the ServiceInstaller class.
  • C、 Use the ServiceManager class.
  • D、 Use the ServiceController class.

正确答案:D

更多相关问题