Example #1
0
        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;
        }