Page 1 of 1

Label Pooled Session

Posted: Tue 05 Aug 2008 11:50
by Alladin
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

Posted: Wed 06 Aug 2008 14:47
by AndreyR
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.