PrepAway - Latest Free Exam Questions & Answers

Which code segment should you insert at line 07?

You create a Windows Communication Foundation service by using Microsoft .NET Framework 3.5.
You write the following code segment.

01 [ServiceContract]
02 public interface IMyService
03 {
04 [OperationContract]
05 void MyMethod();
06 }
07
06 public class serviceImpl:IMyService
09 {
10 [OperationBehavior(TransactionScopeRequired=true)]
11 public void MyMethod(){ }
12}

You need to ensure that concurrent calls are allowed on the service instance.
Which code segment should you insert at line 07?

PrepAway - Latest Free Exam Questions & Answers

A.
[ServiceBehavior(ConcurrencyMode=ConcurrencyMode.Multiple,
ReleaseServiceInstanceOnTransactionComplete=true)]

B.
[ServiceBehavior(ConcurrencyMode=ConcurrencyMode.Multiple,
ReleaseServiceInstanceOnTransactionComplete=false)]

C.
[ServiceBehavior(ConcurrencyMode=ConcurrencyMode.Reentrant,
ReleaseServiceInstanceOnTransactionComplete=true)]

D.
[ServiceBehavior(ConcurrencyMode=ConcurrencyMode.Reentrant,
ReleaseServiceInstanceOnTransactionComplete=false)]


Leave a Reply