A Windows Communication Foundation (WCF) service implements a contract with one-way and request-reply operations.The service is exposed over a TCP transport. Clients use a router to communicate with the service. The router is implemented as follows. (Line numbers are included for reference only.)<br /> 01 ServiceHost host = new ServiceHost(typeof(RoutingService));<br /> 02 host.AddServiceEndpoint(<br /> 03 typeof(ISimplexDatagramRouter),<br /> 04 new NetTcpBinding( ), "net.tcp://localhost/Router"<br /> 05 );<br /> 06 List<serviceendpoint> lep = new List<serviceendpoint>( );<br /> 07 lep.Add(<br /> 08 new ServiceEndpoint(<br /> 09 ContractDescription.GetContract(<br /> 10 typeof(ISimplexDatagramRouter)<br /> 11 ),<br /> 12 new NetTcpBinding( ),<br /> 13 new EndpointAddress("net.tcp://localhost:8080/Logger")<br /> 14 )<br /> 15 );<br /> 16 RoutingConfiguration rc = new RoutingConfiguration( );<br /> 17 rc.FilterTable.Add(new MatchAllMessageFilter( ), lep);<br /> 18 host.Description.Beha
A、Change line 03 as follows: typeof(IRequestReplyRouter),
B、Change line 03 as follows: typeof(IDuplexSessionRouter),
C、Change line 10 as follows: typeof(IRequestReplyRouter)
D、Change line 10 as follows: typeof(IDuplexSessionRouter)