nerdexam
Microsoft

70-513 · Question #319

A WCF service code is implemented as follows. (Line numbers are included for reference only) 01 [ServiceContract] 02 [ServiceBehavior(lnstanceContextMode = 03 lnstanceContextModeSingle)] 04 public…

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(lnstanceContextMode = 03 lnstanceContextModeSingle)] 04 public class CalculatorService 05 { 06 [OperationContract] 07 public double Calculate(double op1, string op. double op2) 08 { 24 } 25 } You need to increase the rate by which clients get the required response from the service. What e two possible ways to achieve this goal? (Each correct answer presents a complete sokiion 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 senvice.

How the community answered

(51 responses)
  • A
    75% (38)
  • C
    8% (4)
  • D
    18% (9)

Community Discussion

No community discussion yet for this question.

Full 70-513 Practice