nerdexam
Microsoft

70-513 · Question #288

A Windows Communication Foundation (WC9 service implements a contract with one-way and requestreply operations. The service is exposed over a TCP transport Clients use a router to communicate with…

The correct answer is B. Change line 04 as follows. See the full explanation below for the reasoning.

Question

A Windows Communication Foundation (WC9 service implements a contract with one-way and requestreply operations. The service is exposed over a TCP transport Clients use a router to communicate with the service. The router is impemented as follows. (Line numbers are included for reference only.) 01 Dim host As ServiceHost = 02 New ServiceHost(GetType(RoutingService)) 03 hostAddServiceEndpoint( 04 GetType(lSimplexDatagramRouter), 05 New NetTcpBinding0, "net.tcp://localhostlRouter" 06) 07 Dim lep As List(Of ServiceEndpoint) = 08 New List(Of SenviceEndpointx) 09 lepAdd( 10 New ServiceEndpoint( 11 CortractDescription.GetContract( 12 GetType(lSimplexDatagramRouter) 13)1 14 New NetTcpBinding0,x 15 New EndpointAddressf'nettcp://localhost:8080/Logger') 16) 17) 18 Dim rc As RoutingConfiguration = New RoutingConfiguration() 19 rc . FitterTable.Add(New Matctf4llMessageFilter0, lep) 20 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?

Options

  • AChange line 04 as follows.
  • BChange line 04 as follows
  • CChange line 12 as follows
  • DChange line 12 as follows.

How the community answered

(52 responses)
  • A
    13% (7)
  • B
    73% (38)
  • C
    8% (4)
  • D
    6% (3)

Community Discussion

No community discussion yet for this question.

Full 70-513 Practice