Which of the following codes should you insert at line number 06?

You are working on a WCF service that will be accessed by several clients. The service will be
used by a bank to handle financial calculations. You want to ensure that the service uses
sessions. You have written the following code segment: (Line numbers are included for reference
only.)
01 namespace MyBankService
02 {
03 [ServiceContract(Name = “BankService”,
04 Namespace = “http://www.mybankservice.com”,
05 CallbackContract = typeof(IBankService),
06 ‘ Insert code statement here.)]
07 public interface IBankService
08 {
09 [OperationContract(IsOneWay = true)]
10 int Deposit(double amount, int accountnum);
11 }
12 }
Which of the following codes should you insert at line number 06?

You are working on a WCF service that will be accessed by several clients. The service will be
used by a bank to handle financial calculations. You want to ensure that the service uses
sessions. You have written the following code segment: (Line numbers are included for reference
only.)
01 namespace MyBankService
02 {
03 [ServiceContract(Name = “BankService”,
04 Namespace = “http://www.mybankservice.com”,
05 CallbackContract = typeof(IBankService),
06 ‘ Insert code statement here.)]
07 public interface IBankService
08 {
09 [OperationContract(IsOneWay = true)]
10 int Deposit(double amount, int accountnum);
11 }
12 }
Which of the following codes should you insert at line number 06?

A.
SessionMode = SessionMode.Allowed

B.
SessionMode = Required

C.
SessionMode = SessionMode.Required

D.
SessionMode = Allowed

Explanation:



Leave a Reply 0

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