You plan to migrate a Windows Communication Foundation (WCF) service from a non-HPC application to a Windows HPC Server 2008.
You have the following code segment. (Line numbers are included for reference only.)
01 [ServiceContract(SessionMode=SessionMode.Required)]
02 [ServiceBehavior(
03 ConcurrencyMode = ConcurrencyMode.Single,
04 InstanceContextMode = InstanceContextMode.PerSession)] 05 public class QuoteService
06 {
07 [OperationContract(
08 Action=@"http://contoso.com/QuoteSvc/Process", 09 IsOneWay=true)]
10 public void ProcessQuote(string symbol)
11 {
12 /// implementation details.
13 }
14 }
You need to ensure that the service can run in an HPC cluster environment. Which three actions should you perform? (Each correct answer presents part of the solution.
Choose three.)
A.
Replace line 01 with the following line of code:
[ServiceContract()]
B.
Replace line 01 with the following line of code:
[ServiceContract(SessionMode=SessionMode.Required, ProtectionLevel=ProtectionLevel.EncryptAndSign)]
C.
Replace line 02 with the following line of code:
[ServiceBehavior(ConcurrencyMode=ConcurrencyMode.Single, InstanceContextMode=InstanceContextMode.PerCall)]
D.
Replace line 02 with the following line of code:
[ServiceBehavior(ConcurrencyMode=ConcurrencyMode.Multiple, ?InstanceContextMode=InstanceContextMode.PerSession)]
E.
Replace line 07 with the following line of code:
[OperationContract(IsOneWay=true)]
F.
Replace line 07 with the following line of code:
[OperationContract(Action=@"http: //contoso.com/QuoteSvc/Process")]