Which code segment should you use at line 10?

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 02 of the following code, the channel faults (Line numbers are included for
reference only.) 01 SampleServiceProxy proxy new SampleServiceProxy() 02try 03{
04proxy Processlnvoice(invoice); 05) 06catch 07{ 08 (proxy. State == CommunicationState.
Faulted) 09{ 10 11) 12) 13 proxy Update Customer(customer); You need to retumn proxy to
a state in which it can successfully execute the call in line 13. Which code segment should
you use at line 10?

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 02 of the following code, the channel faults (Line numbers are included for
reference only.) 01 SampleServiceProxy proxy new SampleServiceProxy() 02try 03{
04proxy Processlnvoice(invoice); 05) 06catch 07{ 08 (proxy. State == CommunicationState.
Faulted) 09{ 10 11) 12) 13 proxy Update Customer(customer); You need to retumn 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 new SampleServiceProxy0;c

B.
proxy.AbortO,

C.
proxy.CloseO;

D.
proxy.Open()

Explanation:



Leave a Reply 0

Your email address will not be published. Required fields are marked *