You are working with a Windows Communication Foundation (WCF) client application that has a generated proxy named SampleServiceProxy.When the client application is executing, in line 04 of the following code, the channel faults (Line numbers are included

题目

You are working with a Windows Communication Foundation (WCF) client application that has a generated proxy named SampleServiceProxy.When the client application is executing, in line 04 of the following code, the channel faults (Line numbers are included for reference only.)01 SampleServiceProxy proxy = new SampleServiceProxy();02 try03 {04 proxy.ProcessInvoice(invoice);05 }06 catch07 {08 if(proxy.State == CommunicationState.Faulted)09 {10 ...11 }12 }13 proxy.UpdateCustomer(customer);You need to return proxy to a state in which it can successfully execute the call in line 13.Which code segment should you use at line 10?()

A. proxy.Close();

B. proxy = new SampleServiceProxy();

C. proxy.Abort();

D. proxy.Open();


相似考题
更多“You are working with a Windows Communication Foundation (WCF) client application that has ”相关问题
  • 第1题:

    Whichfouraretrue?()

    A.Has-arelationshipsshouldneverbeencapsulated.

    B.Has-arelationshipsshouldbeimplementedusinginheritance.

    C.Has-arelationshipscanbeimplementedusinginstancevariables.

    D.Is-arelationshipscanbeimplementedusingtheextendskeyword.

    E.Is-arelationshipscanbeimplementedusingtheimplementskeyword.

    F.Anarrayoracollectioncanbeusedtoimplementaone-to-manyhas-arelationship.

    G.TherelationshipbetweenMovieandActressisanexampleofanis-arelationship.


    参考答案:C, D, E, F

  • 第2题:

    在Internet上搜索信息时,下列说法不正确的是____。

    A.windows and client表示检索结果必须同时满足windows和client两个条件

    B.windows or client表示检索结果只需满足windows和client中一个条件即可

    C.windows not client表示检索结果中不能含有client

    D.windows client表示检索结果中含有windows或client


    答案:D

  • 第3题:

    在Internet上搜索信息时,下列说法不正确的是 。

    A.windows and client表示检索结果必须同时满足windows和client两个条件

    B.windows or client表示检索结果只需满足windows和client中一个条件即可

    C.windows not client表示检索结果中不能含有client

    D.windows client表示检索结果中含有windows或client


    D

  • 第4题:

    下列关于X-Windows体系结构说法正确的是()。

    A.X-Server用于管理客户端硬件

    B.X-Server接受鼠标键盘灯发送的信息

    C.X-client为X-Server提供数据

    D.X-Client是应用程序


    参考答案:ABCD

  • 第5题:

    合格理财师综合素质的标准5Cs代表( )。

    A.坚持以客户为中心(Client)
    B.沟通交流能力(Communication)
    C.协调能力(Coordination)
    D.专业水平(Competence)
    E.高尚的职业操守( commitment to ethics )

    答案:A,B,C,D,E
    解析:
    国外有人把对合格理财师综合素质要求或标准概括为5个方面,用5Cs代表,即坚持以客户为中心(Client)、沟通交流能力(Communication)、协调能力(Coordination)、专业水平(Competence)和高尚的职业操守(Commitment to Ethics)。

  • 第6题:

    92、在Internet上搜索信息时,下列说法不正确的是 。

    A.windows and client表示检索结果必须同时满足windows和client两个条件

    B.windows or client表示检索结果只需满足windows和client中一个条件即可

    C.windows not client表示检索结果中不能含有client

    D.windows client表示检索结果中含有windows或client


    D