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.)<br /> 01 [ServiceContract]<br /> 02 public interface IDataCache<br /> 03 {<br /> 04 ...<br /> 05 }06<br /> 07<br /> 08 public class DataCache : IDataCache<br /> 09 {<br /> 10 ...<br /> 11 }<br /> You need to ensure that all users share the cache.<br /> 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)]