Skip to content

Commit 0039b84

Browse files
committed
Add auto-complete of transaction
1 parent 9be9ef6 commit 0039b84

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

Extensions/Xtensive.Orm.Web/Middleware/OpenSessionMiddleware.cs

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -34,6 +34,7 @@ public async Task Invoke(HttpContext context)
3434
using (sessionAccessor.BindHttpContext(context)) {
3535
try {
3636
await next.Invoke(context);
37+
transaction.Complete();
3738
}
3839
catch(Exception exception) {
3940
// if we caught exception here then

0 commit comments

Comments
 (0)