单选题You are developing a Windows Communication Foundation (WCF) service that executes a long-running operation.The service is accessed from your business applications in a server transaction in which the client does not participate.You need to ensure that the transaction times out and aborts if the operation has not completed within 45 seconds. What should you do?()ASet the service binding sendTimeout attribute to 00:00:45.BApply [ServiceBehavior(TransactionTimeout=00:00:45)] to the service implementation.CSet the service binding receiveTimeout attribute to 00:00:45.DApply [OperationBehavior(TransactionScopeRequired=false)] to the service operation.

单选题
You are developing a Windows Communication Foundation (WCF) service that executes a long-running operation.The service is accessed from your business applications in a server transaction in which the client does not participate.You need to ensure that the transaction times out and aborts if the operation has not completed within 45 seconds. What should you do?()
A

Set the service binding sendTimeout attribute to 00:00:45.

B

Apply [ServiceBehavior(TransactionTimeout=00:00:45)] to the service implementation.

C

Set the service binding receiveTimeout attribute to 00:00:45.

D

Apply [OperationBehavior(TransactionScopeRequired=false)] to the service operation.


参考解析

解析: 暂无解析

相关考题:

You are developing a Windows Service. The Windows Service will host a Windows Communication Foundation (WCF) service.The Windows Service class will inherit from ServiceBase.You need to ensure that the WCF service starts when the Windows Service is restarted.What should you do in the Windows Service class?()A.B.C.D.

You are developing a Windows Communication Foundation (WCF) service. Client applications require reliable sessions to access the service.Users report that they receive ServerTooBusyException errors when their client application tries to establish a session. You need to ensure that the service can handle a minimum of 30 client connection requests.Which ReliableSessionBindingElement property should you configure?()A. MaxRetryCountB. MaxTransferWindowSizeC. MaxPendingChannelsD. InactivityTimeout

You are developing a client application that consumes a Windows Communication Foundation (WCF) service.The operation contract is as follows.[OperationContract][FaultContract(typeof(SalesFault))]string GetSales(string saleId);()The service configuration file contains the following line in the serviceBehaviors section.A divide-by-zero exception is not being handled by the service.You need to ensure that the exception is caught in the client application.Which type of exception should the client catch?()A. TimeoutExceptionB. FaultExceptionC. DivideByZeroExceptionD. FaultExceptionSalesFault

You are creating an application that consumes a Windows Communication Foundation (WCF) service. The service implements the IService contract. The client application contains the CallbackHandler class, which implements IServiceCallback.You need to ensure that a client proxy is created that can communicate with the service over a duplex channel.Which code segment should you use?()A.B.C.D.

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.

Your company has an existing Windows Communication Foundation (WCF) service that allows business partners to place orders. The service uses netMsmqBinding. You find that processing every order in its own transaction is causing a delay. You need to ensure that the service is configured to process multiple orders in one transaction. What should you do? ()A. Useservice behavior and set the maxConcurrentCalls attribute.B. Useendpoint behavior and set the maxBatchSize attribute.C. Useendpoint behavior and set the maxPendingReceives attribute.D. Useendpoint behavior.

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. AnnouncementServiceB. AnnouncementClientC. DiscoveryClientD. HttpListener

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.routingB.service DebugC.service Security AuditD.workflow Unhandled Exception

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 DuplexClientBaseTChannel .D. On the client, use GetCallbackChannelT .

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、NetTcpContextBindingB、BasicHttpContextBindingC、NetTcpBindingD、NetMsmqBinding

You are developing a Windows Communication Foundation (WCF) service. Client applications require reliable sessions to access the service.Users report that they receive ServerTooBusyException errors when their client application tries to establish a session. You need to ensure that the service can handle a minimum of 30 client connection requests. Which ReliableSessionBindingElement property should you configure?()A、MaxRetryCountB、MaxTransferWindowSizeC、MaxPendingChannelsD、InactivityTimeout

Your company has an existing Windows Communication Foundation (WCF) service that allows business partners to place orders. The service uses netMsmqBinding. You find that processing every order in its own transaction is causing a delay. You need to ensure that the service is configured to process multiple orders in one transaction. What should you do? ()A、Use service behavior and set the maxConcurrentCalls attribute.B、Use endpoint behavior and set the maxBatchSize attribute.C、Use endpoint behavior and set the maxPendingReceives attribute.D、Use endpoint behavior.

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、ChannelFactoryB、 ServiceHostC、ClientRuntimeD、CommunicationObject

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、AnnouncementServiceB、AnnouncementClientC、DiscoveryClientD、HttpListener

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、routingB、service DebugC、service Security AuditD、workflow Unhandled Exception

You are developing a Windows Communication Foundation (WCF) service that executes a long-running operation.The service is accessed from your business applications in a server transaction in which the client does not participate.You need to ensure that the transaction times out and aborts if the operation has not completed within 45 seconds. What should you do?()A、Set the service binding sendTimeout attribute to 00:00:45.B、Apply [ServiceBehavior(TransactionTimeout="00:00:45")] to the service implementation.C、Set the service binding receiveTimeout attribute to 00:00:45.D、Apply [OperationBehavior(TransactionScopeRequired=false)] to the service operation.

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 DuplexClientBaseTChannel .D、On the client, use GetCallbackChannelT .

You are developing a client application that consumes a Windows Communication Foundation (WCF) service. The operation contract is as follows. [OperationContract] [FaultContract(typeof(SalesFault))] string GetSales(string saleId);() The service configuration file contains the following line in the serviceBehaviors section. A divide-by-zero exception is not being handled by the service. You need to ensure that the exception is caught in the client application. Which type of exception should the client catch?()A、TimeoutExceptionB、FaultExceptionC、DivideByZeroExceptionD、FaultExceptionSalesFault

单选题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?()AroutingBservice DebugCservice Security AuditDworkflow Unhandled Exception

单选题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?()AChannelFactorytchannelBServiceHostCClientRuntimeDCommunicationObject

单选题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?()AChannelFactoryB ServiceHostCClientRuntimeDCommunicationObject

单选题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?()AOn the OperationContractAttribute, set the AsyncPattern property value to true.BOn the OperationContractAttribute, set the ReplyAction property value to the endpoint address of the client.COn the client, create a proxy derived from DuplexClientBaseTChannel .DOn the client, use GetCallbackChannelT .

单选题Your company has an existing Windows Communication Foundation (WCF) service that allows business partners to place orders. The service uses netMsmqBinding. You find that processing every order in its own transaction is causing a delay. You need to ensure that the service is configured to process multiple orders in one transaction. What should you do? ()AUse service behavior and set the maxConcurrentCalls attribute.BUse endpoint behavior and set the maxBatchSize attribute.CUse endpoint behavior and set the maxPendingReceives attribute.DUse endpoint behavior.

单选题You are developing a Windows Communication Foundation (WCF) service. Client applications require reliable sessions to access the service.Users report that they receive ServerTooBusyException errors when their client application tries to establish a session. You need to ensure that the service can handle a minimum of 30 client connection requests. Which ReliableSessionBindingElement property should you configure?()AMaxRetryCountBMaxTransferWindowSizeCMaxPendingChannelsDInactivityTimeout

单选题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?()AAnnouncementServiceBAnnouncementClientCDiscoveryClientDHttpListener

单选题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?()ANetTcpContextBindingBBasicHttpContextBindingCNetTcpBindingDNetMsmqBinding

单选题You are developing a client application that consumes a Windows Communication Foundation (WCF) service. The operation contract is as follows. [OperationContract] [FaultContract(typeof(SalesFault))] string GetSales(string saleId);() The service configuration file contains the following line in the serviceBehaviors section. A divide-by-zero exception is not being handled by the service. You need to ensure that the exception is caught in the client application. Which type of exception should the client catch?()ATimeoutExceptionBFaultExceptionCDivideByZeroExceptionDFaultExceptionSalesFault