Skip to content

async await Nhibernate 5.3.3 #2588

Discussion options

You must be logged in to vote

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:

Since NHibernate 5.0, the session and its queries IO bound methods have async counterparts. Each call to an async method must be awaited before further interacting with the session or its queries.

Replies: 1 comment

Comment options

You must be logged in to vote
0 replies
Answer selected by hazzik
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
2 participants
Converted from issue

This discussion was converted from issue #2588 on October 31, 2020 01:23.