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.) 01 ServiceHost host = new ServiceHost(typeof(RoutingService)); 02 host.AddServiceEndpoint( 03 typeof(ISimplexDatagramRouter), 04 new NetTcpBinding( ), "net.tcp://localhost/Router" 05 ); 06 List
- 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)
微信扫一扫手机做题