Пример #1
0
        public void Handle(KillPartyAdded e)
        {
            var kill = _repository.Get <KillDto>(e.Id);

            kill.InvolvedParties.Add(new KillInvolvedPartyDto(e.AllianceId, e.CorpId, e.PilotId, e.ShipId, e.WeaponId, e.DamageDone, e.SecurityStatus, e.DamageDone));
            _repository.Save(kill);
        }
Пример #2
0
        public void Handle(PilotCorporationChanged e)
        {
            var dto = _repository.Get <PilotDto>(e.Id);

            dto.CorporationId = e.CorporationId;
            dto.Timestamp     = e.Timestamp;
            _repository.Save(dto);
        }
Пример #3
0
            public void Handle(TestEntityNameChangedEvent e)
            {
                var r = _repository.Get <TestEntityReport>(e.Id);

                r.Name = e.Name;
                _repository.Save(r);
            }
Пример #4
0
        public void Handle(CorporationAllianceChanged e)
        {
            var dto = _repository.Get <CorporationDto>(e.Id);

            dto.AllianceId = e.AllianceId;
        }