Which code segment should you use?

You create a client application that remotely calls the Business Connectivity Services (BCS) object model.

You need to create the context that will be used to request a cache refresh.

Which code segment should you use?

You create a client application that remotely calls the Business Connectivity Services (BCS) object model.

You need to create the context that will be used to request a cache refresh.

Which code segment should you use?

A.
BdcService cCtx = SPFarm.Local.Services.GetValue<BdcService>(string.Empty);

B.
ClientContext cCtx = new ClientContext(string.Empty);

C.
RemoteOfflineRuntime cCtx = new RemoteOfflineRuntime();

D.
RemoteSharedFileBackedMetadataCatalog cCtx = new RemoteSharedFileBackedMetadataCatalog();

Explanation:
MNEMONIC RULE: “cache = RemoteOfflineRuntime”

Code Snippet: Programmatically Request a Cache Refresh on the Client
http://msdn.microsoft.com/en-us/library/ee559351.aspx



Leave a Reply 0

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