You are developing a Windows Communication Foundation (WCF) service.You enable message logging, trace listeners, activity propagation, and tracing on the trace sources.You have the following code segment in the client application. (Line numbers are includ

题目

You are developing a Windows Communication Foundation (WCF) service.You enable message logging, trace listeners, activity propagation, and tracing on the trace sources.You have the following code segment in the client application. (Line numbers are included for reference only.)01 Guid multiCallActivityId = Guid.NewGuid();02 TraceSource ts = new TraceSource("Multicall");03 Trace.CorrelationManager.ActivityId = multiCallActivityId;04You encounter errors when your client application consumes the service.You need to ensure that your client application can correlate tracing information with the service.Which code segment should you add at line 04?()

A.

B.

C.

D.


相似考题
参考答案和解析
参考答案:C
更多“You are developing a Windows Communication Foundation (WCF) service.You enable message log ”相关问题
  • 第1题:

    TwoVPNpeersarenegotiatingIKEphase1usingmainmode.Whichmessagepairinthenegotiation containsthephase1proposalforthepeers?()

    A.message1and2

    B.message3and4

    C.message5and6

    D.message7and8


    参考答案:B

  • 第2题:

    He's spent years cultivating a knowledge of art.

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

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

  • 第3题:

    He's spent years cultivating a knowledge of art.

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

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

  • 第4题:

    Publishingwassuccessfulbutthestorewon’tlaunch.Whichlogshouldbecheckedforerrorsaftertracinghasbeenenabled?()

    A.trace.log

    B.message.txt

    C.activity.log

    D.trace.txt

    E.SystemOut.log


    参考答案:A, C

  • 第5题:

    在Windows操作系统的“运行”对话框中键入( )命令,可打开命令提示窗口。

    A.CMD
    B.MSDOS
    C.RUN
    D.ENABLE

    答案:A
    解析:
    在”开始”菜单中,选运行,在“运行”中输入CMD命令,可以打开命令提示符

  • 第6题:

    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部分:阅读判断