题目内容

You are modifying a Windows Communication Foundation (WCF) service that allows customers to update financial data. The service currently requires a transaction from the client application and is working correctly. 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 public class UpdateService : IDataUpdate 11 { 12 13 [OperationBehavior(TransactionScopeRequired=true, TransactionAutoComplete=true)] 14 public void Update(string accountNumber, double amount) 15 { 16 try 17 { 18 ... 19 } 20 catch(Exception ex) 21 { 22 ... 23 } 24 } 25 }The service must be modified so that client applications do not need to initiate a transaction when calling the operation. The service must use the client application’s transaction if one is available. Otherwise it must use its own transaction.You need to ensure that the service operation is always executed within a transaction. What should you do?()

A. Replace line 05 with the following code. [TransactionFlow(TransactionFlowOption.NotAllowed)]
B. Replace line 13 with the following code. [OperationBehavior(TransactionScopeRequired=false, TransactionAutoComplete=true)]
C. Replace line 05 with the following code. [TransactionFlow(TransactionFlowOption.Allowed)]
D. Replace line 13 with the following code. [OperationBehavior(TransactionScopeRequired=false, TransactionAutoComplete=false)]

查看答案
更多问题

【背景资料】某建筑工程,建筑面积24642m2,地上l0层。地下2层(地下水位-2.0m)。主体结构为非预应力现浇混凝土框架剪力墙结构(柱网为9m×9m,局部柱距为6m),抗震设防烈度7度。梁、柱受力钢筋为HRB335。结构主体地下室外墙采用P8防水混凝土浇筑,墙厚250mm.钢筋净距60mm,混凝土为商品混凝土。一、二层柱混凝土强度等级为C40,以上各层柱为C30。 情形l:施工过程中,施工单位进场的一批水泥经检验其初凝时间不符合要求.另外由于工期要求很紧,地下室外墙施工不得不在气温只有-3℃时进行。 情形2:钢筋工程施工时.发现梁、柱钢筋的接头采用挤压连接,有位于梁、柱端箍筋加密区的情况。在现场留取接头试件样本时,是以同一层每600个为一验收批,并按规定抽取试件样本进行合格性检验。 情形3:结构主体地下室外墙防水混凝土浇筑过程中,现场对粗骨料的最大粒径进行了检测,检测结果为40mm。 下列不属于钢筋安装验收主控项目的是()。

A. 钢筋直径
B. 钢筋数量
C. 钢筋品种
D. 力学性能检验

[计算题]尚得公司属于工业企业,为增值税一般纳税人。该公司会计人员在结账前进行对账时,发现如下错账(会计分录中的金额单位为万元):(1)以银行存款200万元购买甲公司股票作为交易性金融资产投资,买价中包含20万元已宣告未发放的现金股利。编制的会计分录为:借:交易性金融资产200贷:银行存款200(2)销售商品一批,增值税专用发票上注明售价300万元,增值税51万元。款项已收到存入银行。编制的会计分录为:借:银行存款351贷:主营业务收入300应交税费--应交增值税(销项税额)51(3)收到银行存款利息1.5万元,编制的会计分录为:借:银行存款1.5贷:管理费用1.5(4)以银行存款支付广告费40万元。编制的会计分录为:借:销售费用40贷:银行存款40尚得公司登记账簿时,在“销售费用”账户登记的金额为4万元。要求:分别编制错账更正会计分录。(“应交税费”科目要求写出明细科目及专栏名称,答案中的金额单位用万元表示。)

2003年4月红星市赖新县红安村村委会与丰收市水产养殖场因土地使用权发生争议,赖新县人民政府根据红安村村委会要求确认土地所有权和使用权的申请,组织调查后查明:双方争议地原系一片沼泽地,现处于丰收市大理县。1951年土地改革时开始由义务县公安局劳改农场管理使用,1959年移交给丰收市公安局管理。1976年由丰收市政府划拨给市水产养殖场发展水产养殖业至今。红安村村委会认为,水产养殖场使用的地块,新中国成立前就属其村民管理使用,由于该地属低凹地,大部分积水成涝,土改时没有分给村村民,但属于该村集体所有是无可非议的,养殖场将该低凹地改造成鱼塘,长期占有使用,侵犯了村民的集体利益,应退还给红安村集体所有。赖新县人民政府根据法律法规规定,于2007年7月15日作出处理决定,红安村村委会与丰收市水产养殖场争议之土地所有权属于国家所有,使用权仍属于市水产养殖场,并告知申请人若不服该处理决定,可以自接到该处理决定书之日起30日内,向红星市人民政府申请复议或在法定期限内向人民法院提起行政诉讼。红安村村委会若对复议决定不服,可以在收到复议决定书之日起()日内向人民法院起诉。

A. 10
B. 15

You work as the IT professional in an international company which is named Wiikigo. You are experiencedin implementing and administering a network operating system. You are specialized in deploying servers,configuring Windows Server 2008 Terminal services and network application services, and configuring aweb services infrastructure. There is a single Active Directory domain named wiikigo.com in your company.Windows Server 2008 is run by all servers in the domain. The company installs the DNS Server server roleon two domain controllers which are respectively named DC01 and DC02. Active Directory-integrated zones are hosted by both DNS servers. And Active Directory-integrated zones are configured to permit themost secure updates only. Key Management Service (KMS) installed and activated on DC01. You find aproblem that the service locator records from the wiikigo.com zone hosted on DC01 and DC02 are missing.You are required to force registration of the KMS service locator records in the wiikigo.com zone. Which action should be performed to achieve the goal?()

A. On DC01 at the command prompt, the net stop slsvc command should be run, and then the net start slsvc command should be run
B. On DC02 at the command prompt, the net stop netlogon command should be run, and then the net start netlogon command should be run.
C. The wiikigo.com zone should be configured to accept non-secure updates.
D. On DC01 at the command prompt, the slmgr.vbs rearm script should be run.

答案查题题库