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
Label Pooled Session
You can try to put into the OracleConnection StateChange event code in the following way:
No objects can be added to the internal session object.
Code: Select all
private void oracleConnection1_StateChange (object sender, StateChangeEventArgs e) {
if (e.CurrentState == ConnectionState.Open) {
//put your code here
}
}