Created
October 12, 2010 12:18
-
-
Save andreasohlund/622088 to your computer and use it in GitHub Desktop.
This file contains 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 NHibernateMessageHandler:IHandleMessages<NHibernateMessage> | |
{ | |
readonly ISession session; | |
public NHibernateMessageHandler(ISession session) | |
{ | |
this.session = session; | |
} | |
public void Handle(NHibernateMessage message) | |
{ | |
session.Save(new PersistentEntity | |
{ | |
Data = "Whatever " + DateTime.Now.ToShortTimeString() | |
}); | |
} | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment