This question is locked. New answers and comments are not allowed.
Hello,
I've had a look at your best practices example from your code library here. The first approach is to use the master page as the creation point for the IObjectScope instance. This method isn't viable for SharePoint. I'm just wondering what your guidance for SharePoint web parts is?
For example if I have multiple web parts on the one page all calling my services layer which is exposed to web part via a singleton pattern, will the following call in this services layer be thread safe and will it handle all the queries / transactions etc to the database properly:
ObjectScopeProvider1.ObjectScope(); |
Or should I be doing something else in my services layer, like making sure that each service call makes use of the ObjectScopeProvider1.GetNewObjectScope() ?
What is Telerik's guidance around this type of scenario?