Skip to content

Commit

Permalink
fix DI snippet
Browse files Browse the repository at this point in the history
  • Loading branch information
HEskandari committed Mar 21, 2022
1 parent b0b4372 commit e0039cd
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions Snippets/NHibernate/NHibernate_9/Session/OrderHandler.cs
Original file line number Diff line number Diff line change
Expand Up @@ -20,8 +20,7 @@ public OrderHandler(INHibernateStorageSession synchronizedStorageSession)

public Task Handle(OrderMessage message, IMessageHandlerContext context)
{
var nhibernateSession = context.SynchronizedStorageSession.Session();
nhibernateSession.Save(new Order());
synchronizedStorageSession.Session.Save(new Order());
return Task.CompletedTask;
}
}
Expand Down

0 comments on commit e0039cd

Please sign in to comment.