コード例 #1
0
        public void Handle(string aggregateId, MakeGuess command)
        {
            Aggregate newGame = repo.Restore(aggregateId) ?? new Aggregate(new Game());

            command.Handle(newGame.Game);
            repo.Save(newGame);
            eventBus.Emit(newGame.UncomittedEvents);
        }
コード例 #2
0
 private void button1_Click(object sender, EventArgs e)
 {
     MakeGuess?.Invoke(this, e);
 }