You are developing a Windows Communication Foundation (WCF) service. The following code defines and implements the service. (Line numbers are included for reference only.)01 [ServiceContract(SessionMode = SessionMode.Allowed)]02 public interface ICatchAll

题目

You are developing a Windows Communication Foundation (WCF) service. The following code defines and implements the service. (Line numbers are included for reference only.)01 [ServiceContract(SessionMode = SessionMode.Allowed)]02 public interface ICatchAll03 {04 [OperationContract(IsOneWay = false, Action = "*", ReplyAction = "*")]05 Message ProcessMessage(Message message);06 }0708 public class CatchAllService : ICatchAll09 {10 public Message ProcessMessage(Message message)11 {1213 ...14 return returnMsg;15 }16 }You need to ensure that two identical copies of the received message are created in the service.Which code segment should you insert at line 12?()

A.

B.

C.

D.


相似考题
参考答案和解析
参考答案:B
更多“You are developing a Windows Communication Foundation (WCF) service. The following code de ”相关问题
  • 第1题:

    在Radius协议中,对CODE=1的报文的响应有三种,除了CODE=3和CODE=11的报文外,第三种可能的应答报文是()。

    A.CODE=2的报文

    B.CODE=4的报文

    C.CODE=5的报文

    D.CODE=10的报文


    参考答案:A

  • 第2题:

    He's spent years cultivating a knowledge of art.

    A:using
    B:denying
    C:sharing
    D:developing

    答案:D
    解析:
    这句话的意思是:他用了数年的时间学习艺术知识。句中“cultivate”意为“培养”。四个 选项中A项意为“使用”;B项意为“否认”;C项意为“分享”;D项意为“发展,培养”。因此只有 D项最为合适。

  • 第3题:

    设在Eclipse下有项目名为java_code,则该项目下默认所有的字节码文件存放于()。

    A.java_code/src

    B.java_code/bin

    C.java_code/lib

    D.java_code/pr


    java_code/bin 字节码

  • 第4题:

    He's spent years cultivating a knowledge of art.

    A:sharing
    B:using
    C:denying
    D:developing

    答案:D
    解析:
    他花费多年培养对艺术的学识。cultivate:培养;share:分享;use:使用;deny:否定; develop:发展,最符合题意。

  • 第5题:

    He's spent years cultivating a knowledge of art.

    A:denying
    B:using
    C:sharing
    D:developing

    答案:D
    解析:
    本句意思:他已花费多年培养对艺术的学识。Cultivate“培养”和develop“发展”意思相 近。spend(time)doing sth./in doing sth.“花(时间)做某事”。第2部分:阅读判断

  • 第6题:

    设在Eclipse下有项目名为java_code,则该项目下默认所有的字节码文件存放于()。

    A.java_code/src

    B.java_code/bin

    C.java_code/lib

    D.java_code/classes


    java_code/bin 字节码