You create a service-oriented architecture (SOA) application by using Windows Communication Foundation (WCF). The application will be deployed on a Windows HPC Server 2008 cluster.
The application includes the following code segment. (Line numbers are included for reference only.)
01 [ServiceContract]
02 public interface IMyService
03 {
04 [OperationContract]
05 void MyOperation();
06 }
07 [ServiceBehavior(InstanceContextMode = InstanceContextMode.PerCall)] 08 public class MyService : IMyService
09 {
10 public void MyOperation()
11 {
12 }
13 }
The WCF service application assembly named MyService.dll is located in the
C:ServicesMyService folder. The MyService.dll service references four assemblies located in the C:ServicesCommon folder. You plan to deploy the WCF service on each compute node of an HPC cluster. You need to register the WCF service on each compute node. Which two actions should you perform? (Each correct answer presents part of the solution.
Choose two.)
A.
Create an XML file named Web.config and save it in the C:ServicesMyService folder on each compute node.
B.
Create an XML file named MyService.config and save it in the %CCP_HOME%ServiceRegistration
folder on each compute node.
C.
Add the following XML fragment in the service registration file:
<microsoft.Hpc.Session.ServiceRegistration>
<service assembly="C:ServicesMyServiceMyService.dll" contract="IMyService"
type="MyService"
architecture="AnyCpu">
<environmentVariables>
<add name="PATH" value="C:ServicesCommon"/>
</environmentVariables>
</service>
</microsoft.Hpc.Session.ServiceRegistration>
D.
Add the following XML fragment in the service registration file:
<microsoft.Hpc.Session.ServiceRegistration>
<service
assembly="%CCP_HOME%ServiceRegistrationMyService.dll" contract="IMyService"
type="MyService"
architecture="AnyCpu">
<environmentVariables>
<add name="PATH" value="C:ServicesMyService"/>
<add name="CCP_SERVICEREGISTRATION_PATH"
value="C:ServicesCommon"/>
</environmentVariables>
</service>
</microsoft.Hpc.Session.ServiceRegistration>