搜题
用户您好, 请在下方输入框内搜索其它题目:
搜题
题目内容 (请给出正确答案)
提问人:网友 发布时间:
【单选题】

You are integrating a Windows Communication Foundation (WCF) service within an enterprise-wide Service Oriented Architecture (SOA).Your service has the following service contract:<br /> [ServiceContract]public class CreditCardConfirmationService { [OperationContract] boolean ConfirmCreditCard(string ccNumber);<br /> double OrderAmount(int orderNumber);}<br /> You need to allow the code in the ConfirmCreditCard method to participate automatically in existing transactions.If there is no existing transaction, a new transaction must be created automatically. What should you do?()

A、Inside the ConfirmCreditCard method, surround the code that must participate in the transaction with a using(new TransactionScope()) block.

B、Inside the ConfirmCreditCard method, surround the code that must participate in the transaction with a using(new CommittableTransaction()) block.

C、Add an [OperationBehavior(TransactionScopeRequired=true)] attribute to the ConfirmCreditCard method.

D、Add an [OperationBehavior(TransactionAutoComplete=true)] attribute to the ConfirmCreditCard method.

更多“ You are integrating a Windows Communication Foundation (WCF) service within an enterprise-wide Service Oriented Architecture (SOA).Your service has the following service contract:<br /> [ServiceContract]public class CreditCardConfirmationService { [OperationContract] boolean ConfirmCreditCard(string ccNumber);<br /> double OrderAmount(int orderNumber);}<br /> You need to allow the code in the ConfirmCreditCard method to participate automatically in existing transactions.If there is no existing transaction, a new transaction must be created automatically. What should you do?()”相关的问题
第1题

A、You are fired! You are hired!  B、You are fired! You are fired!  C、You are hired! You are hired!  D、You are hired! Youarefired!  

点击查看答案
第2题

A、Enable Anonymous access. Enable Integrated Windows authentication.  B、Enable Anonymous access. Enable Basic authentication.  C、Disable Anonymous access. Enable Integrated Windows authentication.  D、Disable Anonymous access. Enable Basic authentication.  

点击查看答案
第3题

A、What are you?  B、Where are you from?  C、Who are you?  D、What are you doing?  

点击查看答案
第4题

A、Fine. How are you?  B、How do you do? Glad to meet you, too.  C、How are you? Thank you!  D、Nice. How are you?  

点击查看答案
第5题

A、Are you on the course?  B、Are you on the line ?  C、Are you on the wheel?  D、Are you on the route?  

点击查看答案
第6题

A、What are you?  B、How are you?  C、Who are you?  D、Where are from?  

点击查看答案
第7题

A、Thanks, so are you  B、Thanks, so do you  C、Yes, I do  D、Yes, you are too  

点击查看答案
第8题

A、Where are you going?  B、What are you go?  C、How do you go?  D、Where are you go?  

点击查看答案
第9题

A、Hello, who are you looking for?  B、What can I do for you ?  C、Are you looking for anyone?  D、Who are you?  

点击查看答案
第10题

A、Yes, you are.  B、You are right.  C、Yes, I am.  D、Not at all.  

点击查看答案
客服
TOP

请使用微信扫码支付

订单号:
遇到问题请联系在线客服