Skip to content

Instantly share code, notes, and snippets.

@andreasohlund
Created November 22, 2011 12:51
Show Gist options
  • Select an option

  • Save andreasohlund/1385596 to your computer and use it in GitHub Desktop.

Select an option

Save andreasohlund/1385596 to your computer and use it in GitHub Desktop.
UoW.Handler
public class PlaceOrderHandler : IHandleMessages<PlaceOrder>
{
readonly IDocumentSession session;
public PlaceOrderHandler(IDocumentSession session)
{
this.session = session;
}
public void Handle(PlaceOrder message)
{
session.Store(new Order
{
OrderId = message.OrderId
});
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment