How should bind2 be defined and configured?

DRAG DROP
Hosting Code Exhibit:
Dim host As ServiceHost = New ServiceHost(GetType(CounterService))
Dim bidl As NetTcpBinding =
New NetTcpBinding(SecurityMode.None)
host.AddServiceEndpoint(”PassGuideApp.ICounterService”,
binding, “net.tcp://localhost: 98765”)
host.Open()
Bind2 exhibit:
host.AddServiceEndpoint(‘’PassGuideApp.ICounterService”,
bind2, “http:/!localhost: 98765”)

There is a WCF (Windows Communication Foundation) self-hosted service PassGuideService.
PassGuideService provides a session-based counter.
PassGuideService is exposed over TCP.
The PassGuideService hosting code is being displayed in the exhibit.
PassGuideService must also be exposed over HTTP for external clients.
The session-counter must be able to perform over HTTP at it does over TCP.
How should bind2 be defined and configured?

DRAG DROP
Hosting Code Exhibit:
Dim host As ServiceHost = New ServiceHost(GetType(CounterService))
Dim bidl As NetTcpBinding =
New NetTcpBinding(SecurityMode.None)
host.AddServiceEndpoint(”PassGuideApp.ICounterService”,
binding, “net.tcp://localhost: 98765”)
host.Open()
Bind2 exhibit:
host.AddServiceEndpoint(‘’PassGuideApp.ICounterService”,
bind2, “http:/!localhost: 98765”)

There is a WCF (Windows Communication Foundation) self-hosted service PassGuideService.
PassGuideService provides a session-based counter.
PassGuideService is exposed over TCP.
The PassGuideService hosting code is being displayed in the exhibit.
PassGuideService must also be exposed over HTTP for external clients.
The session-counter must be able to perform over HTTP at it does over TCP.
How should bind2 be defined and configured?

Answer:

Explanation:



Leave a Reply 0

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