Exemplo n.º 1
0
        public void handle(MinesweeperGameStarted domain_event)
        {
            var game = new MinefieldView()
            {
                game_id = domain_event.game_id, game_lost = false, game_won = false
            };

            using (var session = SessionFactory.GetNewSession())
            {
                using (var trans = session.BeginTransaction())
                {
                    session.Save(game);

                    trans.Commit();
                }
            }
        }
Exemplo n.º 2
0
 private void Awake()
 {
     ME = this;
 }