网友您好, 请在下方输入框内输入要搜索的题目:

题目内容 (请给出正确答案)

You develop a Windows Communication Foundation (WCF) service that employees use to access bonus information.You define the following service contract. (Line numbers are included for reference only.)01 [ServiceContract(SessionMode = SessionMode.Required)]02 public interface IFinancialService03 {04 [OperationContract]05 string Login(int employeeID, string passwordHash);0607 [OperationContract]08 double GetBonus(int month);0910 [OperationContract(IsTerminating = true)]11 void Logout();12 }Client application can invoke methods without logging in. You need to ensure that the client applications invoke Login before invoking any other method. You also need to ensure that client applications cannot consume the service after invoking Logout.Which two action should you perform? ()(Each correct answer presents part of the solution. Choose two.)。

A. Replace line 04 with the following code. [OperationContract(IsInitiating = false)]

B. Replace line 04 with the following code. [OperationContract(IsInitiating = true, IsTerminating = true)]

C. Replace line 07 with the following code. [OperationContract(IsInitiating = false)]

D. Replace line 10 with the following code. [OperationContract(IsInitiating = false, IsTerminating = true)]


参考答案

更多 “ You develop a Windows Communication Foundation (WCF) service that employees use to access bonus information.You define the following service contract. (Line numbers are included for reference only.)01 [ServiceContract(SessionMode = SessionMode.Required)]02 public interface IFinancialService03 {04 [OperationContract]05 string Login(int employeeID, string passwordHash);0607 [OperationContract]08 double GetBonus(int month);0910 [OperationContract(IsTerminating = true)]11 void Logout();12 }Client application can invoke methods without logging in. You need to ensure that the client applications invoke Login before invoking any other method. You also need to ensure that client applications cannot consume the service after invoking Logout.Which two action should you perform? ()(Each correct answer presents part of the solution. Choose two.)。A. Replace line 04 with the following code. [OperationContract(IsInitiating = false)]B. Replace line 04 with the following code. [OperationContract(IsInitiating = true, IsTerminating = true)]C. Replace line 07 with the following code. [OperationContract(IsInitiating = false)]D. Replace line 10 with the following code. [OperationContract(IsInitiating = false, IsTerminating = true)] ” 相关考题
考题 You are developing a Windows Communication Foundation (WCF) service.You need to enable security auditing for all events.What should you do?() A. Set the serviceAuthorizationAuditLevel setting to Success and the messageAuthenticationAuditLevel setting to Success.B. Set the messageAuthenticationAuditLevel setting to Success and the auditLogLocation setting to Application.C. Set the serviceAuthorizationAuditLevel setting to SuccessAndFailure and the messageAuthenticationAuditLevel setting to SuccessAndFailure.D. Set the messageAuthenticationAuditLevel setting to SuccessAndFailure and the auditLogLocation setting to Security.

考题 You develop a Windows Communication Foundation (WCF) service. You name the service MovieService in the Movie namespace. The service is hosted in Microsoft Internet Information Services (IIS). You copy the assembly containing the service to the bin folder in the virtual directory path.You need to set up the URI that is mapped to the service.What should you do?()A.B.C.D.

考题 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 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.

考题 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.

考题 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 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.

考题 You have a secured Windows Communication Foundation (WCF) service. You need to track unsuccessful attempts to access the service. What should you do?() A. Set the authorization Manager Type attribute of the service Authorization behavior to Message.B. Set the include Exception Detailsln Faults attribute of the service Debug behavior to true.C. Set the Mode attribute of the security configuration element to Message.D. Set the message Authentication AuditLevel attribute of the service Security Audit behavior to Failure.

考题 You are developing a data contract for a Windows Communication Foundation (WCF) service. The data in the data contract must participate in round trips. Strict schema validity is not required. You need to ensure that the contract is forward-compatible and allows new data members to be added to it. Which interface should you implement in the data contract class?()A.ICommunicationObjectB.IExtensionC.IExtensibleObjectD.IExtensibleDataObject