试题详情
- 单项选择题 A Windows Communication Foundation (WCF) solution provides a session-based counter.The service is self-hosted. The hosting code is as follows: ServiceHost host = new ServiceHost(typeof(CounterService)); NetTcpBinding binding1 = new NetTcpBinding(SecurityMode.None); host.AddServiceEndpoint("MyApplication.ICounterService", binding1, "net.tcp://localhost:23456"); host.Open( ); This service is currently exposed over TCP, but needs to be exposed to external clients over HTTP. Therefore, a new service endpoint is created with the following code:host.AddServiceEndpoint("MyApplication.ICounterService", binding2, "http://localhost:12345");You need to complete the implementation and ensure that the session-based counter will perform over HTTP as it does over TCP.What should you do?()
A、
B、
C、
D、
- A
关注下方微信公众号,在线模考后查看
热门试题
- Youconfigureasubscri
- 你是TestKing网站的电脑管理员,所
- You are a
- You are developing
- Your company has an
- Your company&e
- You have
- 你是 TestKing.co
- 你是 TestKing.co
- Certkiller是一个Active&
- 你是 TestKing.co
- You use Microsoft .
- A user re
- You are
- Your company has an
- Your network&en
- You create a mobile
- 您有一台运行 Windows&
- 你正在创建一个提供客户数据给外部应用的H
- 您在计算机上安装了某个协力厂商应用程序。