网友您好, 请在下方输入框内输入要搜索的题目:

题目内容 (请给出正确答案)

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 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(); ” 相关考题
考题 How long() you() a member of the club? A.have,,joinedB.have,,beenC.has,,joinedD.has,,been

考题 胭脂的英文是Rouge/foundation(blush)() 此题为判断题(对,错)。

考题 You are developing a Windows Communication Foundation (WCF) client application.The client application contains the following code.[ServiceContract]public interface ISocialStatus{[OperationContract][WebInvoke(UriTemplate = /statuses/update.xml?status-{text})]void UpdateStatus(string text);}public class SocialClient : ClientBase, ISocialStatus{...}The configuration file contains the following lines.binding=webHttpBinding contract=SocialApp.ISocialStatusbindingConfiguration=BindingConfig /You need to ensure that the service is consumed.Which code segment should you use?()A. var client = new SocialClient(SocialClient); client.Endpoint.Behaviors.Add(new WebHttpBehavior());B. var client = new SocialClient(SocialClient); client.Endpoint.Behaviors.Add(new WebScriptEnablingBehovior());C. var client = new SocialClient(POST); client.Endpoint.Behaviors.Add(new WebHttpBehovior());D. var client = new SocialClient(POST); client.Endpoint.Behaviors.Add(new WebScriptEnablingBehavior());

考题 A Windows Communication Foundation (WCF) client and service share the following service contract interface:[ServiceContract]public interface IContosoService{[OperationContract]void SavePerson(Person person);}They also use the following binding:NetTcpBinding binding = new NetTcpBinding() { TransactionFlow = true };The client calls the service with the following code:using (TransactionScope ts = new TransactionScope(TransactionScopeOption.Required)){IContosoService client = factory.CreateChannel();client.SavePerson(person);Console.WriteLine(Transaction.Current.TransactionInformation.DistributedIdentifier);ts.Complete();}The service has the following implementation for SavePerson:public void IContosoService.SavePerson(Person person){person.Save();Console.WriteLine(Transaction.Current.TransactionInformation.DistributedIdentifier);}The distributed identifiers do not match on the client and the server.You need to ensure that the client and server enlist in the same distributed transaction. What should you do?()

考题 Whichfouraretrue?() A.Has-arelationshipsshouldneverbeencapsulated.B.Has-arelationshipsshouldbeimplementedusinginheritance.C.Has-arelationshipscanbeimplementedusinginstancevariables.D.Is-arelationshipscanbeimplementedusingtheextendskeyword.E.Is-arelationshipscanbeimplementedusingtheimplementskeyword.F.Anarrayoracollectioncanbeusedtoimplementaone-to-manyhas-arelationship.G.TherelationshipbetweenMovieandActressisanexampleofanis-arelationship.

考题 下列关于X-Windows体系结构说法正确的是()。 A.X-Server用于管理客户端硬件B.X-Server接受鼠标键盘灯发送的信息C.X-client为X-Server提供数据D.X-Client是应用程序

考题 在Internet上搜索信息时,下列说法不正确的是____。A.windows and client表示检索结果必须同时满足windows和client两个条件B.windows or client表示检索结果只需满足windows和client中一个条件即可C.windows not client表示检索结果中不能含有clientD.windows client表示检索结果中含有windows或client

考题 合格理财师综合素质的标准5Cs代表( )。A.坚持以客户为中心(Client) B.沟通交流能力(Communication) C.协调能力(Coordination) D.专业水平(Competence) E.高尚的职业操守( commitment to ethics )

考题 在Internet上搜索信息时,下列说法不正确的是 。A.windows and client表示检索结果必须同时满足windows和client两个条件B.windows or client表示检索结果只需满足windows和client中一个条件即可C.windows not client表示检索结果中不能含有clientD.windows client表示检索结果中含有windows或client

考题 92、在Internet上搜索信息时,下列说法不正确的是 。A.windows and client表示检索结果必须同时满足windows和client两个条件B.windows or client表示检索结果只需满足windows和client中一个条件即可C.windows not client表示检索结果中不能含有clientD.windows client表示检索结果中含有windows或client