Which code segment should you insert at line 07?

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 End Interface 06 07 08 Public Class DataCache 09 Implements
IDataCache 10 11 . . . 12 End Class You need to ensure that all users share the cache.
Which code segment should you insert at line 07?

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 End Interface 06 07 08 Public Class DataCache 09 Implements
IDataCache 10 11 . . . 12 End Class You need to ensure that all users share the cache.
Which code segment should you insert at line 07?

A.
<ServiceBehavior(TransactionIsolationLevel:= IsolationLevel.ReadCommitted)>

B.
<ServiceBehavior(InstanceContextMode:= InstanceContextMode.Single)>

C.
<ServiceBehavior (InstanceContextMode : = InstanceContextMode.PerSession)>

D.
<ServiceBehavior(TransactionIsolationLevel:= IsolationLevel.RepeatableRead)>



Leave a Reply 0

Your email address will not be published. Required fields are marked *