当前位置:MCTS(70-513)题库

问题:

[单选]

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)]

Your company has a single active directory domain. All servers run windows server 2008. You install an additional DNS server that runs windows server 2008. You need to delete the pointer record for the IP address 10.3.2.127. what should you do?() Use DNS manager to delete the 127.in-addr.arpa zone.。 Run the dnscmd /recordelte 10.3.2.127 command at the command prompty.。 Run the dnscmd /zonedelete 127.in-addr.apa command at the command prompt.。 Run the dnscmd /recorddelete 10.in-addr.arpa 172.2.3 PRT command at the command prompt.。 用于防治路基病害、保证路基稳定、改善环境景观、保护生态平衡的工程称作() 路基防护工程。 路基排水工程。 路基加固工程。 路基支挡工程。 下面那些标签符合(X)HTML的语法结构() <School>国家开放大学</ School > 。 <Book> <Name>哈利波特 </ Book > </Name>  。 [body] [/body] 。 {book=网页设计}。 Your network contains a DNS server named DNS1 that runs Windows Server 2008 R2.You need to ensure that DNS1 only responds to DNS queries from computers that are located in the same subnet.What should you configure?() Interfaces from DNS Manager。 Security from DNS Manager。 Trust Anchors。 Windows Firewall。 下列属于公路建设市场信用信息中最高信用等级的是() AA级。 A级。 B级。 D级。

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?()

参考答案:

  参考解析

本题暂无解析

在线 客服