题目内容

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.榜样示范法
b.正面教育法
c.说服教育法
d.正强化法

a.5个月
b.3个月
c.1个月
d.10个月

从本质上看跨文化管理主要是进行企业文化的外部整合()

对一次购入多种材料共同发生的采购费用应按一定标准分配计入各种材料的采购成本。()

答案查题题库