Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Substitute AsyncLocal with a diffrent type of session storage #15

Open
Satem opened this issue Jun 20, 2022 · 0 comments
Open

Substitute AsyncLocal with a diffrent type of session storage #15

Satem opened this issue Jun 20, 2022 · 0 comments

Comments

@Satem
Copy link
Member

Satem commented Jun 20, 2022

Using AsyncLocal as a mechanism for storing a DbSession dictates that a programmer must create a transaction on the top level of all the code that is executed inside this transaction. As a consequence, it is impossible to use a wrapper(for purposes of creating distributed transactions, for example) that would encapsulate library calls like "await sessionFactory.CreateCommittableSessionAsync()".

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant