async await Nhibernate 5.3.3 #2588
-
I am using Nhibernate 5.3.3 version. I have two different loops. I get "object referance error" in parallel loop. My queries are running in the normal loop. I do not understand what the logic could be. Sample code with errors :
Successful running code sample :
|
Beta Was this translation helpful? Give feedback.
Replies: 1 comment
-
The session is not thread safe, do not use a session shared for parallel processing. This is unsupported and will likely never be supported. Any async call involving a session must be awaited prior to doing anything else on the session.
|
Beta Was this translation helpful? Give feedback.
The session is not thread safe, do not use a session shared for parallel processing. This is unsupported and will likely never be supported.
Any async call involving a session must be awaited prior to doing anything else on the session.
See Threads and connection: