题目内容

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 lep = new List(); 07 lep.Add( 08 new ServiceEndpoint( 09 ContractDescription.GetContract( 10 typeof(ISimplexDatagramRouter) 11 ), 12 new NetTcpBinding(), 13 new EndpointAddress("net.tcp://localhost:8080/Logger") 14 ) 15 ); 16 RoutingConfiguration rc = new RoutingConfiguration(); 17 rc.FilterTable.Add(new MatchAllMessageFilter(), 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 03 as follows: typeof(IRequestReplyRouter),
B. Change line 03 as follows: typeof(IDuplexSessionRouter),
Change line 10 as follows: typeof(IRequestReplyRouter)
D. Change line 10 as follows: typeof(IDuplexSessionRouter)

查看答案
更多问题

重视小儿先证而治的原因是()

A. 体禀纯阳,生机蓬勃
B. 发病容易,变化迅速
C. 脏气清灵,易趋康复
D. 脏腑清灵,活力充沛
E. 宿疾较少,病因单纯

下述不是小儿结核性脑膜炎的是()

A. 脑底脑膜炎型结核性脑膜炎
B. 脑膜脑炎型结核性脑膜炎
C. 脊髓型结核性脑膜炎
D. 浆液型结核性脑膜炎
E. 黏液型结核性脑膜炎

机组起动前为什么先要进行连续盘车?

简答义素和语素之间的区别。

答案查题题库