试题详情
- 单项选择题 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
关注下方微信公众号,在线模考后查看
热门试题
- You are d
- You configure&
- You are developing
- Your company&
- You are the network
- Your company has a
- You administer
- Your network&e
- Your Windows&e
- 你是TestKing网站的电脑管理员,公
- 公司A有一个名为SQL1的SQLQ
- Your network&e
- Yournetworkcontainsa
- Your company&e
- You have
- You use Microsoft .
- You are
- Your network&e
- You have
- 您公司使用Windows U