Skip to content

Add an async enabled transaction synchronization #1864

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

Merged
merged 2 commits into from
Oct 4, 2018

Conversation

fredericDelaporte
Copy link
Member

Fixes #1752

}
}

// Since v5.2
Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I have not written 5.3 but 5.2, in case we merge this in it.

if (synchronization == null)
throw new ArgumentNullException(nameof(synchronization));

// It is tempting to use the session ActionQueue instead, but stateless sessions do not have one.
Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

So I do not see another way than keeping this additional way of doing things.

}
}));
session.ConnectionManager.Transaction.RegisterSynchronization(
new AfterTransactionCompletion(
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Can we have a proper class instead of this delegate-based unpleasantness?

@fredericDelaporte fredericDelaporte added this to the 5.2 milestone Oct 4, 2018
@fredericDelaporte fredericDelaporte merged commit facb8c2 into nhibernate:master Oct 4, 2018
@fredericDelaporte fredericDelaporte deleted the tranSync branch October 4, 2018 08:52
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants