Which code segment should you use?

DRAG DROP
Contract exhibit:
<ServiceContract>
Public Interface IHelloService
<OperationContract>
<WebGet(UriTemplate: =“hellonane={name}”>
Function PassGuideHello(Byval name As String) As string
End Interface
Class exhibit:
Public Class HelloService
Implements IHelloService
Public Function PassGuideHello(ByVal name As String) As String_
Implements lHelloService
PassGuideHello
Return “Hi there “& name
End Function
End Class

Hosting code exhibit:
Dim svcHost As WebServiceHost = CreateHost()
svcHost.Open()
Console.ReadLine()
svcHost.Close()
There is a WCF (Windows Communication Foundation) service PassGuideService.
The contract of PassGuideService, the implementation, and self-hosted service hosting code are
displayed in separate exhibits.
A single endpoint, at http://PassGuide:7500/HelloService, is used for the implementation of
CreateHost.
Which code should you use?
You need to implement CreateHost so that the service has a single endpoint hosted
http:/IPassGuide7500/HeloService.
Which code segment should you use?

DRAG DROP
Contract exhibit:
<ServiceContract>
Public Interface IHelloService
<OperationContract>
<WebGet(UriTemplate: =“hellonane={name}”>
Function PassGuideHello(Byval name As String) As string
End Interface
Class exhibit:
Public Class HelloService
Implements IHelloService
Public Function PassGuideHello(ByVal name As String) As String_
Implements lHelloService
PassGuideHello
Return “Hi there “& name
End Function
End Class

Hosting code exhibit:
Dim svcHost As WebServiceHost = CreateHost()
svcHost.Open()
Console.ReadLine()
svcHost.Close()
There is a WCF (Windows Communication Foundation) service PassGuideService.
The contract of PassGuideService, the implementation, and self-hosted service hosting code are
displayed in separate exhibits.
A single endpoint, at http://PassGuide:7500/HelloService, is used for the implementation of
CreateHost.
Which code should you use?
You need to implement CreateHost so that the service has a single endpoint hosted
http:/IPassGuide7500/HeloService.
Which code segment should you use?

Answer:

Explanation:



Leave a Reply 0

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