试题详情
- 单项选择题 You are developing a Windows Communication Foundation (WCF) service to provide an in-memory cache for many Web applications.The service contract is defined as follows. (Line numbers are included for reference only.) 01 [ServiceContract] 02 public interface IDataCache 03 { 04 ... 05 }06 07 08 public class DataCache : IDataCache 09 { 10 ... 11 } You need to ensure that all users share the cache. Which code segment should you insert at line 07?()
A、[ServiceBehavior(TransactionIsolationLevel = IsolationLevel.RepeatableRead)]
B、[ServiceBehavior(InstanceContextMode = InstanceContextMode.Single)]
C、[ServiceBehavior(InstanceContextMode = InstanceContextMode.PerSession)]
D、[ServiceBehavior(TransactionIsolationLevel = IsolationLevel.ReadComitted)]
- B
关注下方微信公众号,在线模考后查看
热门试题
- You need
- Your network&en
- 为应用程序开发人员上班 Certkil
- 你是 TestKing.co
- You work
- You work a
- You have
- Your computers
- our network contains
- You are developing
- You create&ensp
- TestKing.com u
- Yournetworkcontainsa
- You have two server
- Your network&en
- All client computers
- Your company uses M
- Your wireless&
- You are c
- 公司A有一个由两个域DOM1和DOM2组