ServiceContract Exhibit:
Your service has the rollowing service contract.
[ServiceContract]
public class PassGuideService {
[OperationContract]
public Boolean PassGuideConfirm(string PhoneNumber, double wage, integer EmployeeNumber)
{ }
}
There is a WCF (Windows Communication Foundation) service PassGuideService.
PassGuideService exists within SOA (Service Oriented Architecture) within an enterprise.
The serviceContact of PassGuideService is displayed in the exhibit.
Method PassGuideConfirm, when executed, must be participate transperentally in existing
transactions.Furthermore, when there is no existing transaction, a new transaction must be
created.
How should the ServiceContract be tweaked to achieve is?
A.
Use the PassGuideConfirm method..
B.
Use the ServiceContract..
C.
..add the following attribute..
D.
..add the following code inside the definition ..
E.
[OperationBehavior(TransactionScopeRequired false)]
F.
[OperationBehavior(TransactionScopeRequired true)]
G.
[OperationBehavior(TransactionAutoComplete true)]
H.
[OperationBehavior(TransactionAutoComplete false)]
I.
using(new CommittableTransaction())
J.
using(new TransactionScope ())
Explanation: