皮皮学,免费搜题
登录
logo - 刷刷题
搜题
【单选题】
You are developing a Windows Communication Foundation (WCF) service that allows customers to update financial data. The client applications call the service in a transaction. The service contract is defined as follows. (Line numbers are included for reference only.) 01 [ServiceContract] 02 public interface IDataUpdate 03 { 04 [OperationContract] 05 [TransactionFlow(TransactionFlowOption.Mandatory)] 06 void Update(string accountNumber, double amount); 07 } 08 09 ... 10 class UpdateService : IDataUpdate 11 { 12 [OperationBehavior(TransactionScopeRequired = true, TransactionAutoComplete = true)]13 public void Update(string accountNumber, double amount) 14 { 15 try 16 { 17 ... 18 } 19 catch(Exception ex) 20 { 21 WriteErrorLog(ex); 22 ... 23 } 24 } 25 } 26Customers report that the transaction completes successfully even if the Update method throws an exception.You need to ensure that the transaction is aborted if the Update method is not successful. What should you do? ()
A.
Insert the following line at line 22: throw;
B.
Insert the following line at line 09: [ServiceBehavior(TransactionAutoCompleteOnSessionClose=false)]
C.
Replace line 12 with the following line: [OperationBehavior(TransactionScopeRequired=true, TransactionAutoComplete= false)]
D.
Insert the following line at line 09.: [ServiceBehavior(TransactionAutoCompleteOnSessionClose=true)]
手机使用
分享
复制链接
新浪微博
分享QQ
微信扫一扫
微信内点击右上角“…”即可分享
反馈
参考答案:
举一反三
【单选题】液压系统中工作部件运动速度较高时,应选择粘度( )的液压油。
A.
较大
B.
较小
C.
均可
【单选题】商誉是企业的一种典型的()
A.
有形资产
B.
无形资产
C.
优质资产
D.
无用资产
【单选题】下列选项解释不正确的一项是
A.
臣为韩王送沛公:被动句,我被韩王送到沛公那里。
B.
具告以事:以事具告(之),省略句,状语后置句,把(项羽攻打刘邦)事情详细地告诉了张良。
C.
为之奈何:文言固定句式,奈何为之,这有什么办法呢?表示无计可施。
D.
谁为大王为此计者:两个“为”的解释不一样,第一个“为”解释为“给”,第二个“为”解释为“想出”
【单选题】商誉是企业的一种典型的
A.
有形资产
B.
无形资产
C.
固定资产
【单选题】下列选项解释不正确的一项是:
A.
籍吏民,封府库:籍,名词作动词,登记户籍
B.
约为婚姻:婚姻,古今异义,解释为“儿女亲家”。
C.
吾得兄事之:兄,名词作状语,像对待兄长一样;事,名作动,侍奉,对待。
D.
不可不蚤自谢项王:蚤,通“早”;谢,感谢。
【判断题】. 在传统渠道中,各成员均各自为政,为追求其自身利益最大化而与其他成员短期合作或展开激烈竞争。
A.
正确
B.
错误
【判断题】感湿特征量随环境温度的变化越大,环境温度变化所引起的相对湿度的误差就越小。
A.
正确
B.
错误
【单选题】商誉是企业的一种典型的 ( )
A.
有形资产
B.
无形资产
C.
优质资产
D.
固定资产
【简答题】阅读以下文字。完成 96~100 题。 第 96 题 结合文意,下列解释不正确的一项是( )。
【判断题】商誉是企业的一种典型的无形资产。
A.
正确
B.
错误
相关题目:
参考解析:
知识点:
题目纠错 0
发布
创建自己的小题库 - 刷刷题