nerdexam
Microsoft

70-513 · Question #330

The company uses Visual Studio .NET Framework 4.0 as its application development platform. You has been given a task to create a WCF Service based on Framework 4.0. You is required to add the…

The correct answer is A. [OperationContract(IsTerminating=true)]. See the full explanation below for the reasoning.

Question

The company uses Visual Studio .NET Framework 4.0 as its application development platform. You has been given a task to create a WCF Service based on Framework 4.0. You is required to add the following code segment: (Line numbers are included for reference only.) 01 [ServiceContract(SessionMode=SessionMode.Required)] 02 public interface IInventoryManager 03 { 05 void CloseOrder(); 06 } You needs to decorate and manage the operation as the method that closes the current session method. Which of the following code statements should you insert at line number 04 to accomplish the task?

Options

  • A[OperationContract(IsTerminating=true)]
  • B[OperationContract(IsTerminating=false)]
  • C[OperationContract(IsInitiating=true)]
  • D[OperationContract(IsInitiating=false)]

How the community answered

(43 responses)
  • A
    84% (36)
  • B
    5% (2)
  • C
    9% (4)
  • D
    2% (1)

Community Discussion

No community discussion yet for this question.

Full 70-513 Practice