You are developing a Windows Communication Foundation (WCF) service that allows
customers to update financial dat a. The service contract is defined as follows. (Line
numbers are included for reference only.) You need to ensure that the service is invoked
within a transaction. What should you do?
A.
Replace line 01 with the following code. <ServiceContract(
SessionMode:=SessionMode.Required)>
B.
Insert the following code at line 09. <ServiceBehavior(
TransactionAutoCompleteOnSessionClose:=False)>
C.
Replace line 01 with the following code. <ServiceContract(
SessionMode:=SessionMode.NotAllowed)>
D.
Insert the following code at line 09. <ServiceBehavior(
ReleaseServiceInstanceOnTransactionComplete:=False)>