How should bind2 be defined and configured?

DRAG DROP
Hosting Code Exhibit:
ServiceHost host = new ServiceHost(typeof(CounterService));
NetTcpBinding bind1 =
new NetTcpBinding(SecurityMode None);
host.AddServiceEndpoint(”PassGuideApp.ICounterService”,
bind1, “net.tcp://localhost: 98765”);
host.Open0;
Bind2 exhibit:
host.AddServiceEndpoint(”PassGuideApp.ICounterService”,
bind2, “http:Illocalhost: 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:
ServiceHost host = new ServiceHost(typeof(CounterService));
NetTcpBinding bind1 =
new NetTcpBinding(SecurityMode None);
host.AddServiceEndpoint(”PassGuideApp.ICounterService”,
bind1, “net.tcp://localhost: 98765”);
host.Open0;
Bind2 exhibit:
host.AddServiceEndpoint(”PassGuideApp.ICounterService”,
bind2, “http:Illocalhost: 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 *