-
July 24th, 2007, 08:19 PM
#1
Data Provider question
I have a data provider. Is it thread-safe to use client specific instance variables in it? Is it that a new instance of my data provider is created for each new client? If one client fires up 2 instances of IE and logs in as the same client, 2 instances of my data provider are created to serve the requests If the client closes one browser, one of the 2 instances of my data provider is gced . if he closes both browsers, then both instances of my dp are gced right?
-
July 25th, 2007, 01:07 AM
#2
Only one instance of your Data Provider is created and it is used for all the lifecycle of the Server. That means that such instance will be shared for all the requests. Also notice that the Data Provider has no notion of users. It's the Metadata Adapter that can know about each user's requests.
Similar Threads
-
By pluczak in forum Adapter SDKs
Replies: 1
Last Post: April 26th, 2012, 10:50 AM
-
By exchangepulse in forum Adapter SDKs
Replies: 5
Last Post: October 28th, 2009, 05:41 PM
-
By juls in forum Adapter SDKs
Replies: 1
Last Post: March 4th, 2009, 09:00 AM
Posting Permissions
- You may not post new threads
- You may not post replies
- You may not post attachments
- You may not edit your posts
-
Forum Rules
All times are GMT +1. The time now is 07:18 PM.
Bookmarks