试题详情
- 单项选择题 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 try 03 { 04 proxy.ProcessInvoice(invoice); 05 } 06 catch 07 { 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();
- B
关注下方微信公众号,在线模考后查看
热门试题
- You are the network
- Contoso Ltd. has a
- Rate your level of
- You create&ensp
- You have
- 一个在家工作的职员向你电话求助。由于病毒
- Your company
- You work as the IT
- Your network&
- Your network&en
- 您公司的网络拥有运行Windows
- You are
- You work
- Certkiller.COM有一个单一的
- A Windows Communica
- 联合搜索连接器通过什么方式安装?()
- Yournetworkconsistso
- Your company&e
- Your company
- A server