Created
November 22, 2011 12:51
-
-
Save andreasohlund/1385596 to your computer and use it in GitHub Desktop.
UoW.Handler
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| 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