找考题网-背景图
单项选择题

A service implements the following contract. (Line numbers are included for reference only)
01 [ServiceContract(SessionMode = SessionMode.Required)]
02 public interface IContosoService
03 {
04 [OperationContract(IsOneWay = true, IsInitiating = true)]
05 void OperationOne(string value);
06
07 [OperationContract(IsOneWay = true, IsInitiating = false)]
08 void OperationTwo(string value);
09 }The service is implemented as follows:
10 class ContosoService: IContosoService
11 {
12 public void OperationOne(string value) {...}
13 ...
14 public void OperationTwo(string value) {...}
15 }
ContosoService uses NetMsmqBinding to listen for messages. The queue was set up to use transactions for adding and removing messages.You need to ensure that OperationOne and OperationTwo execute under the same transaction context when they are invoked in the same session.What should you do?()

A.
B.
C.
D.

热门试题