Which of the following code statements should you insert at line number 04 to accomplish the task?

John works as Windows Application Developer for PassGuide.com. The company uses Visual
Studio .NET Framework 4.0 as its application development platform. John has been given a task
to create a WCF Service based on Framework 4.0. John 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 {
04
05 void CloseOrder();
06 }
John 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?

John works as Windows Application Developer for PassGuide.com. The company uses Visual
Studio .NET Framework 4.0 as its application development platform. John has been given a task
to create a WCF Service based on Framework 4.0. John 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 {
04
05 void CloseOrder();
06 }
John 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?

A.
[OperationContract(IsTerminating=true)]

B.
[OperationContract(IsTerminating=false)]

C.
[OperationContract(IsInitiating=true)]

D.
[OperationContract(IsInitiating=false)]

Explanation:



Leave a Reply 0

Your email address will not be published. Required fields are marked *