コード例 #1
0
ファイル: MatchSaga.cs プロジェクト: emanbuc/M.NetAAE2
        public void Handle(MatchStartedEvent message)
        {
            // This code only serves the purpose of the RavenDB example here.
            _repo.BeginHistory(message.MatchId);
            // Persist the event
            _repo.Save(message).Commit();

            // Set the ID of the saga
            SagaId = message.MatchId;
        }