单选题A Windows Communication Foundation (WCF) service implements a contract with one-way and request-reply operations.The service is exposed over a TCP transport. Clients use a router to communicate with the service. The router is implemented as follows. (L

题目
单选题
A Windows Communication Foundation (WCF) service implements a contract with one-way and request-reply operations.The service is exposed over a TCP transport. Clients use a router to communicate with the service. The router is implemented as follows. (Line numbers are included for reference only.) 01 ServiceHost host = new ServiceHost(typeof(RoutingService)); 02 host.AddServiceEndpoint( 03 typeof(ISimplexDatagramRouter), 04 new NetTcpBinding( ), "net.tcp://localhost/Router" 05 ); 06 List lep = new List( ); 07 lep.Add( 08 new ServiceEndpoint( 09 ContractDescription.GetContract( 10 typeof(ISimplexDatagramRouter) 11 ), 12 new NetTcpBinding( ), 13 new EndpointAddress("net.tcp://localhost:8080/Logger") 14 ) 15 ); 16 RoutingConfiguration rc = new RoutingConfiguration( ); 17 rc.FilterTable.Add(new MatchAllMessageFilter( ), lep); 18 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?()
A

Change line 03 as follows: typeof(IRequestReplyRouter),

B

Change line 03 as follows: typeof(IDuplexSessionRouter),

C

Change line 10 as follows: typeof(IRequestReplyRouter)

D

Change line 10 as follows: typeof(IDuplexSessionRouter)


相似考题
更多“A Windows Communication Foundation (WCF) service implements”相关问题
  • 第1题:

    You are developing a Windows Communication Foundation (WCF) service. The service configuration file has a element defined. You need to ensure that all security audit information, trace logging, and message logging failures are recorded.Which configuration segment should you add to the element?()

    A.

    B.

    C.

    D.


    参考答案:C

  • 第2题:

    A Windows Communication Foundation (WCF) service is required to log all authorization attempts to the Windows Event Log. You need to configure a behavior and apply it to the service to support this requirement. Which behavior should you configure and apply?()

    A. service Authentication Manager

    B. service Authorization

    C. service Credentials

    D. service Security Audit


    参考答案:D

  • 第3题:

    You are creating a Windows Communication Foundation (WCF) service. You need to ensure that the service is compatible with ASP.NET to make use of the session state. Which binding should you use?()

    A. NetTcpContextBinding

    B. BasicHttpContextBinding

    C. NetTcpBinding

    D. NetMsmqBinding


    参考答案:B

  • 第4题:

    You have an existing Windows Communication Foundation (WCF) service. You need to ensure that other services are notified when the service is started.What should you do?()

    A.

    B.

    C.

    D.


    参考答案:D

  • 第5题:

    A Windows Communication Foundation (WCF) service implements the following contract. [ServiceContract] public interface IHelloService { [OperationContract(WebGet(UriTemplate="hello?name={name}"))]

    A.

    B.

    C.

    D.


    参考答案:B

  • 第6题:

    You are building a client for a Windows Communication Foundation (WCF) service. You need to create a proxy to consume this service. Which class should you use?()

    • A、ChannelFactory
    • B、 ServiceHost
    • C、ClientRuntime
    • D、CommunicationObject

    正确答案:A

  • 第7题:

    A Windows Communication Foundation (WCF) service is required to log all authorization attempts to the Windows Event Log. You need to configure a behavior and apply it to the service to support this requirement. Which behavior should you configure and apply?()

    • A、service Authentication Manager
    • B、service Authorization
    • C、service Credentials
    • D、service Security Audit

    正确答案:D

  • 第8题:

    A Windows Communication Foundation (WCF) service has a callback contract. You are developing a client application that will call this service.You must ensure that the client application can interact with the WCF service. What should you do?()

    • A、On the OperationContractAttribute, set the AsyncPattern property value to true.
    • B、On the OperationContractAttribute, set the ReplyAction property value to the endpoint address of the client.
    • C、On the client, create a proxy derived from DuplexClientBase<TChannel >.
    • D、On the client, use GetCallbackChannel<T >.

    正确答案:C

  • 第9题:

    单选题
    You are building a client for a Windows Communication Foundation (WCF) service. You need to create a proxy to consume this service. Which class should you use?()
    A

    ChannelFactory

    B

    ServiceHost

    C

    ClientRuntime

    D

    CommunicationObject


    正确答案: A
    解析: 暂无解析

  • 第10题:

    单选题
    You are creating a Windows Communication Foundation (WCF) service that implements operations in a RESTful manner. You need to add a delete operation. You implement the delete method as follows:void DeleteItems(string id);You need to configure WCF to call this method when the client calls the service with the HTTP DELETE operation. What should you do?()
    A

    Add the WebInvoke(UriTemplate=/Items/{id}, Method=DELETE) attribute to the operation

    B

    Add the HttpDelete atribute to the operation

    C

    Replace the string parameter with a RemovedActivityAction parameter

    D

    Replace the return type with RemovedActivityAction.


    正确答案: A
    解析: 暂无解析

  • 第11题:

    单选题
    You plan to host a Windows Communication Foundation (WCF) service in a Windows Azure worker role.  Custom code is necessary to initialize and configure the service endpoint.   You need to recommend the point at which the application should initialize the WCF service.  What should you recommend?()
    A

     When Windows Azure initializes the worker role instance.

    B

     When the worker role instance receives its first request.

    C

     When the worker role instance instantiates the WCF service.

    D

     When the worker role instance enters the main execution thread.


    正确答案: A
    解析: 暂无解析

  • 第12题:

    单选题
    A Windows Communication Foundation (WCF) service is required to log all authorization attempts to the Windows Event Log. You need to configure a behavior and apply it to the service to support this requirement. Which behavior should you configure and apply?()
    A

    service Authentication Manager

    B

    service Authorization

    C

    service Credentials

    D

    service Security Audit


    正确答案: C
    解析: 暂无解析

  • 第13题:

    You are developing a Windows Communication Foundation (WCF) service. The service operation takes a customer number as the only argument and returns information about the customer. The service requires a security token in the header of the message. You need to create a message contract for the service.Which code segment should you use?()

    A.

    B.

    C.

    D.


    参考答案:D

  • 第14题:

    A Windows Communication Foundation (WCF) service sends notifications when the service is started and stopped.You need to implement a client that logs these notifications. Which class should you use?()

    A. AnnouncementService

    B. AnnouncementClient

    C. DiscoveryClient

    D. HttpListener


    参考答案:A

  • 第15题:

    Windows Communication Foundation (WCF) service is self-hosted in a console application. The service implements the lTimeService service interface in the TimeService class.You need to configure the service endpoint for HTTP communication. How should you define the service and endpoint tags?()

    A.

    B.

    C.

    D.


    参考答案:D

  • 第16题:

    Your Windows Communication Foundation (WCF) client application uses HTTP to communicate with the service.You need to enable message logging and include all security information such as tokens and nonces in logged messages.What should you do?()

    A.

    B.

    C.

    D.


    参考答案:D

  • 第17题:

    You are creating a Windows Communication Foundation (WCF) service that implements operations in a RESTful manner. You need to add a delete operation. You implement the delete method as follows:void DeleteItems(string id);You need to configure WCF to call this method when the client calls the service with the HTTP DELETE operation. What should you do?()

    A. Add the WebInvoke(UriTemplate="/Items/{id}", Method="DELETE") attribute to the operation

    B. Add the HttpDelete atribute to the operation

    C. Replace the string parameter with a RemovedActivityAction parameter

    D. Replace the return type with RemovedActivityAction.


    参考答案:A

  • 第18题:

    A Windows Communication Foundation (WCF) service sends notifications when the service is started and stopped.You need to implement a client that logs these notifications. Which class should you use?()

    • A、AnnouncementService
    • B、AnnouncementClient
    • C、DiscoveryClient
    • D、HttpListener

    正确答案:A

  • 第19题:

    A Windows Communication Foundation (WCF) service interacts with the database of a workflow engine. Data access authorization is managed by the database, which raises security exceptions if a user is unauthorized to access it.You need to ensure that the application transmits the exceptions raised by the database to the client that is calling the service.Which behavior should you configure and apply to the service?()

    • A、routing
    • B、service Debug
    • C、service Security Audit
    • D、workflow Unhandled Exception

    正确答案:B

  • 第20题:

    单选题
    You are developing an application that performs file backups in the background. The background application will host a Windows Communication Foundation (WCF) service and must be active as soon as the machine is running. The background application will not have a user interface. A front-end application will consume the WCF service and will provide the user interface.You need to choose a host environment for the WCF service. Which hosting environment should you choose? ()
    A

    Microsoft Internet Information Services (IIS) 6.0

    B

    Windows Process Activation Services (WAS)

    C

    A Windows Forms application

    D

    A Windows Service


    正确答案: A
    解析: 暂无解析

  • 第21题:

    单选题
    You are creating a Windows Communication Foundation (WCF) service that implements operations in a RESTful manner.You need to add a delete operation. You implement the delete method as follows. string void DeleteItems(string id);You need to configure WCF to call this method when the client calls the service with the HTTP DELETE operation. What should you do?()
    A

     Add the WebInvoke(UriTemplate = /Items/{id},Method=DELETE) attribute to the operation.

    B

     Add the HttpDelete attribute to the operation.

    C

     Replace the string parameter with a RemovedActivityAction parameter.

    D

     Replace the return type with RemovedActivityAction.


    正确答案: A
    解析: 暂无解析

  • 第22题:

    单选题
    Your company hosts web services in the company intranet.  The intranet is secured by a firewall.   Devices outside the firewall must be able to access the web services.  Company policies prohibit changes to firewall rules.  You need to recommend an approach for enabling inbound communication.  What should you recommend?()
    A

     Use Windows Server AppFabric.

    B

     Use the Windows Azure AppFabric Service Bus.

    C

     Use the Windows Azure AppFabric Access Control Service.

    D

     Use a Windows Communication Foundation (WCF) service in a Windows Azure role that relays to the internal web service


    正确答案: A
    解析: 暂无解析

  • 第23题:

    单选题
    You are creating a Windows Communication Foundation (WCF) service. You need to ensure that the service is compatible with ASP.NET to make use of the session state. Which binding should you use?()
    A

    NetTcpContextBinding

    B

    BasicHttpContextBinding

    C

    NetTcpBinding

    D

    NetMsmqBinding


    正确答案: C
    解析: 暂无解析

  • 第24题:

    单选题
    A Windows Communication Foundation (WCF) service has a callback contract. You are developing a client application that will call this service.You must ensure that the client application can interact with the WCF service. What should you do?()
    A

    On the OperationContractAttribute, set the AsyncPattern property value to true.

    B

    On the OperationContractAttribute, set the ReplyAction property value to the endpoint address of the client.

    C

    On the client, create a proxy derived from DuplexClientBase<TChannel >.

    D

    On the client, use GetCallbackChannel<T >.


    正确答案: D
    解析: 暂无解析