Example #1
0
        public void Handle(AccountReinstated @event)
        {
            //SHOWS A CONCRETE EXAMPLE OF EVENT REPLAY

            var events = _accountStore.GetAggregateEvents(@event.AccountId);

            var reinstatingStream = BuilderReinstatingStream(events);

            foreach (var e in reinstatingStream)
            {
                _domainEventBus.Publish(e.Event);
            }
        }