You need to ensure that the router can handle one-way and request-reply operations

A Windows Communication Foundation (WCF) service implements a contract with one-way
and requestreply 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.) 01 ServiceHost host = new
ServiceHost(typeof(RoutingService)); 02 host AddServiceEndpoint( 03
typeof(lSimplexDatagramRouter), 04 new NetTcpBinding0, “net.tcp:/flocalhostlRouter” 05);
06 List <ServiceEndpoints lep new List <ServiceEndpoint>0;t 07 lep.Add( 08 new
ServiceEndpoint( 09 ContractDescription.GetContract( 10 typeof(lSimplexDatagramRouter)
11), 12 new NetTcpBinding0, 13 new EndpointAddress|’nettcp://localhost: 8080/Logger”)
14) 15); 16 RoutingConfiguration rc new RoutingConfigurationO; 17 rC. FilterTable.Add(new
MatchAilMessageFilterO, lep); 18 host. Description. Behaviors. Add(new
RoutingBehavior(rc)); Request-reply operations are failing. You need to ensure that the
router can handle one-way and request-reply operations. What should you do?

A Windows Communication Foundation (WCF) service implements a contract with one-way
and requestreply 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.) 01 ServiceHost host = new
ServiceHost(typeof(RoutingService)); 02 host AddServiceEndpoint( 03
typeof(lSimplexDatagramRouter), 04 new NetTcpBinding0, “net.tcp:/flocalhostlRouter” 05);
06 List <ServiceEndpoints lep new List <ServiceEndpoint>0;t 07 lep.Add( 08 new
ServiceEndpoint( 09 ContractDescription.GetContract( 10 typeof(lSimplexDatagramRouter)
11), 12 new NetTcpBinding0, 13 new EndpointAddress|’nettcp://localhost: 8080/Logger”)
14) 15); 16 RoutingConfiguration rc new RoutingConfigurationO; 17 rC. FilterTable.Add(new
MatchAilMessageFilterO, lep); 18 host. Description. Behaviors. Add(new
RoutingBehavior(rc)); Request-reply operations are failing. You need to ensure that the
router can handle one-way and request-reply operations. What should you do?

A.
Change line 10 as follows. typeof(lDuplexSessionRouter)

B.
Change line 10 as follows. typeof(lRequestReplyRouter)

C.
Change line 03 as follows. typeof(l RequestReplyRouter),

D.
Change line 03 as follows. typeof(lDuplexSessionRouter),



Leave a Reply 0

Your email address will not be published. Required fields are marked *