当前位置:MCTS(70-513)题库

问题:

[单选]

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),
C . Change line 10 as follows: typeof(IRequestReplyRouter)
D . Change line 10 as follows: typeof(IDuplexSessionRouter)

笛里谁知壮士心,()。作者陆游 计算脚手架立杆基础底面的平均压力时,由上部结构传至立杆基础顶面的轴向力应采用()。 A.组合值 。 B.标准值 。 C.频遇值 。 D.设计值。 ()是以真人真事为表述对象,应用文学技巧准确及时反映现实生活的散文。 报告文学。 小品文。 随笔。 杂文。 众里寻他千百度蓦然回首,那人却在,()。作者辛弃疾 请叙述乡镇一级安全生产工作职责有哪些?

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?()

 

参考答案:

  参考解析

本题暂无解析

在线 客服