Esempio n. 1
0
        public void Consume(ThingDeleted @event)
        {
            var thing  = this.thingRepository.Get(@event.Id);
            var things = this.thingsRepository.Get(Root);

            things.Names.Remove(thing.Name);

            this.thingsRepository.AddOrUpdate(Root, things);
            this.thingRepository.Remove(@event.Id);
        }
Esempio n. 2
0
 public void Consume(ThingDeleted @event)
 {
     this.repository.Remove(@event.Id);
 }