Label Pooled Session

Label Pooled Session

Postby Alladin » Tue 05 Aug 2008 11:50

Hi there,

I have a relative costly custom session initialization. I'd like to label session that it's already initialized. I could write my own session pool to workaround this issue, but since there is already one, I'd like to use it with minimal code tide.

What I need is to store somehow my custom data (Tag) to the internal session object.

How do I proceed?

Thank you in advance
Alladin
 
Posts: 149
Joined: Mon 27 Nov 2006 16:18

Postby AndreyR » Wed 06 Aug 2008 14:47

You can try to put into the OracleConnection StateChange event code in the following way:
Code: Select all
private void oracleConnection1_StateChange (object sender, StateChangeEventArgs e) {
  if (e.CurrentState == ConnectionState.Open) {
    //put your code here
  }
}


No objects can be added to the internal session object.
AndreyR
Devart Team
 
Posts: 2919
Joined: Mon 07 Jul 2008 13:16


Return to dotConnect for Oracle