多做题,通过考试没问题!

微软认证考试

睦霖题库>其他计算机考试>微软认证考试

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、
正确答案:B
答案解析:
进入题库查看解析

微信扫一扫手机做题