可学答题网 > 问答 > MCTS(70-513)题库
目录: 标题| 题干| 答案| 搜索| 相关
问题

You develop a Windows Communication F


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.
参考答案
参考解析:
分类:MCTS(70-513)题库
相关推荐

1、You are developing a Windows Communic

You are developing a Windows Communication Foundation (WCF) service that does not operate on a duplex channel.You find that operations do not s...

2、You are developing a Windows Communic

You are developing a Windows Communication Foundation (WCF) service to provide an in-memory cache for many Web applications.The service contract ...

3、You are developing a Windows Communic

You are developing a Windows Communication Foundation (WCF) service that will be hosted in Microsoft Internet Services (IIS) 7.0.The service must...

4、You are developing a Windows Presenta

You are developing a Windows Presentation Foundation (WPF) application to play audio files. You add MediaElement mediaElement1 and a Button contr...

5、You are developing a Windows Communic

You are developing a Windows Communication Foundation (WCF) service. The service operation takes a customer number as the only argument and retu...

6、You develop a Windows Communication F

You develop a Windows Communication Foundation (WCF) service. You name the service MovieService in the Movie namespace. The service is hosted in...