70-513 · Question #226
A WCF service code is implemented as follows. (Line numbers are included for reference only.) 01 <ServiceContract()> 02 <ServiceBehavior( 03 InstanceContextMode:=InstanceContextMode.Single)> 04…
The correct answer is A. Change the service behavior to the following. B. Change the service behavior to the following. See the full explanation below for the reasoning.
Question
A WCF service code is implemented as follows. (Line numbers are included for reference only.) 01 <ServiceContract()> 02 <ServiceBehavior( 03 InstanceContextMode:=InstanceContextMode.Single)> 04 Public Class CalculatorService 06 <OperationContract()> 07 Public Function Calculate(ByVal op1 As Double, 08 ByVal op As String, ByVal op2 As Double) As Double & 24 End Function 26 End Class You need to decrease the response time of the service. What are two possible ways to achieve this goal (Each correct answer presents a complete solution. Choose two.)
Options
- AChange the service behavior to the following.
- BChange the service behavior to the following.
- CRequire the clients use threads, the Parallel Task Library, or other mechanism to issue
- DRequire the clients to use async operations when calling the service.
How the community answered
(22 responses)- A77% (17)
- C14% (3)
- D9% (2)
Community Discussion
No community discussion yet for this question.